Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Issue 2768633003: Dynamic updating recent menu for tabs from other devices. (Closed)

Created:
3 years, 9 months ago by sath
Modified:
3 years, 8 months ago
Reviewers:
Peter Kasting, pavely
CC:
chromium-reviews, sync-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Dynamic updating recent menu for tabs from other devices. If user opens recent/history menu and at the same moment syncronization is updating session from other devices then user will can see non-relevant a list of opened tabs from the other devices. It's easy to reproduce. 1. Open a browser with enabled syncronization. 2. Open chrome://sync-internals page. 3. Open recent/history menu and wait for updating session on chrome://sync-internals page. 4. Open new tab on other synced device. 5. When chrome://sync-internals shows that session was updated the opened menu will show previous state of list list of opened tabs from the other devices. R=pkasting@chromium.org, pavely@chromium.org Review-Url: https://codereview.chromium.org/2768633003 Cr-Commit-Position: refs/heads/master@{#460503} Committed: https://chromium.googlesource.com/chromium/src/+/0f51324df2b3f6a90d7454fe66a17c012bd16277

Patch Set 1 #

Total comments: 20

Patch Set 2 : Fixes after review. #

Total comments: 6

Patch Set 3 : Fixes after remarks and track enabling syncronization. #

Total comments: 8

Patch Set 4 : Fixes after remarks. #

Patch Set 5 : Rebasing to master. #

Patch Set 6 : Fixes of compilation #

Patch Set 7 : Fixes compilation and test on Mac. #

Patch Set 8 : Fixes compilation and test on Mac. #

Total comments: 5

Patch Set 9 : Fixes compilation and test on Mac. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+391 lines, -91 lines) Patch
M chrome/browser/ui/browser_tabrestore_browsertest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/app_menu/app_menu_controller_unittest.mm View 1 2 3 4 5 6 7 8 9 chunks +53 lines, -25 lines 0 comments Download
M chrome/browser/ui/toolbar/app_menu_model.cc View 1 2 3 4 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/toolbar/recent_tabs_builder_test_helper.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.h View 1 2 7 chunks +27 lines, -4 lines 0 comments Download
M chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc View 1 2 3 4 6 chunks +46 lines, -14 lines 0 comments Download
M chrome/browser/ui/toolbar/recent_tabs_sub_menu_model_unittest.cc View 1 2 3 4 5 6 7 20 chunks +248 lines, -43 lines 0 comments Download
M components/browser_sync/profile_sync_service_mock.h View 1 chunk +3 lines, -0 lines 0 comments Download
M components/browser_sync/profile_sync_service_mock.cc View 1 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 59 (36 generated)
sath
PTAL
3 years, 9 months ago (2017-03-22 08:24:46 UTC) #1
Peter Kasting
Is there an associated BUG= for this? This sounds very similar to some discussions on ...
3 years, 9 months ago (2017-03-22 08:47:57 UTC) #2
sath
On 2017/03/22 08:47:57, Peter Kasting wrote: > Is there an associated BUG= for this? This ...
3 years, 9 months ago (2017-03-22 10:15:18 UTC) #3
Peter Kasting
https://codereview.chromium.org/2768633003/diff/1/chrome/browser/ui/toolbar/app_menu_model.cc File chrome/browser/ui/toolbar/app_menu_model.cc (right): https://codereview.chromium.org/2768633003/diff/1/chrome/browser/ui/toolbar/app_menu_model.cc#newcode721 chrome/browser/ui/toolbar/app_menu_model.cc:721: new RecentTabsSubMenuModel(provider_, browser_)); Nit: While here, prefer MakeUnique to ...
3 years, 9 months ago (2017-03-23 04:48:36 UTC) #4
sath
On 2017/03/23 04:48:36, Peter Kasting wrote: > https://codereview.chromium.org/2768633003/diff/1/chrome/browser/ui/toolbar/app_menu_model.cc > File chrome/browser/ui/toolbar/app_menu_model.cc (right): > > https://codereview.chromium.org/2768633003/diff/1/chrome/browser/ui/toolbar/app_menu_model.cc#newcode721 ...
3 years, 9 months ago (2017-03-23 15:37:08 UTC) #5
Peter Kasting
LGTM https://codereview.chromium.org/2768633003/diff/1/chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.h File chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.h (right): https://codereview.chromium.org/2768633003/diff/1/chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.h#newcode130 chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.h:130: // Clear all tabs from other devices. On ...
3 years, 9 months ago (2017-03-24 00:06:27 UTC) #6
pavely
lgtm % one comment https://codereview.chromium.org/2768633003/diff/20001/chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc File chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc (right): https://codereview.chromium.org/2768633003/diff/20001/chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc#newcode214 chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc:214: if (sync_service && sync_service->IsSyncActive()) Is ...
3 years, 9 months ago (2017-03-24 01:20:05 UTC) #7
Peter Kasting
https://codereview.chromium.org/2768633003/diff/20001/chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc File chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc (right): https://codereview.chromium.org/2768633003/diff/20001/chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc#newcode214 chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc:214: if (sync_service && sync_service->IsSyncActive()) On 2017/03/24 01:20:05, pavely wrote: ...
3 years, 9 months ago (2017-03-24 01:35:22 UTC) #8
pavely
https://codereview.chromium.org/2768633003/diff/20001/chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc File chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc (right): https://codereview.chromium.org/2768633003/diff/20001/chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc#newcode214 chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc:214: if (sync_service && sync_service->IsSyncActive()) On 2017/03/24 01:35:21, Peter Kasting ...
3 years, 9 months ago (2017-03-24 04:13:22 UTC) #9
sath
On 2017/03/24 04:13:22, pavely wrote: > https://codereview.chromium.org/2768633003/diff/20001/chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc > File chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc (right): > > https://codereview.chromium.org/2768633003/diff/20001/chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc#newcode214 > ...
3 years, 9 months ago (2017-03-24 18:43:14 UTC) #10
Peter Kasting
LGTM https://codereview.chromium.org/2768633003/diff/40001/chrome/browser/ui/toolbar/recent_tabs_builder_test_helper.cc File chrome/browser/ui/toolbar/recent_tabs_builder_test_helper.cc (right): https://codereview.chromium.org/2768633003/diff/40001/chrome/browser/ui/toolbar/recent_tabs_builder_test_helper.cc#newcode140 chrome/browser/ui/toolbar/recent_tabs_builder_test_helper.cc:140: base::TimeDelta::FromMinutes(base::RandGenerator(kMaxMinutesRange)); Do we need randomness at all here? ...
3 years, 9 months ago (2017-03-24 19:54:03 UTC) #11
pavely
lgtm https://codereview.chromium.org/2768633003/diff/40001/chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc File chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc (right): https://codereview.chromium.org/2768633003/diff/40001/chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc#newcode758 chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc:758: OnForeignSessionUpdated(sync); On 2017/03/24 19:54:02, Peter Kasting wrote: > ...
3 years, 9 months ago (2017-03-24 20:09:11 UTC) #12
sath
I have made some small fixes. https://codereview.chromium.org/2768633003/diff/40001/chrome/browser/ui/toolbar/recent_tabs_builder_test_helper.cc File chrome/browser/ui/toolbar/recent_tabs_builder_test_helper.cc (right): https://codereview.chromium.org/2768633003/diff/40001/chrome/browser/ui/toolbar/recent_tabs_builder_test_helper.cc#newcode140 chrome/browser/ui/toolbar/recent_tabs_builder_test_helper.cc:140: base::TimeDelta::FromMinutes(base::RandGenerator(kMaxMinutesRange)); On 2017/03/24 ...
3 years, 9 months ago (2017-03-27 11:29:32 UTC) #13
Peter Kasting
Still LGTM
3 years, 9 months ago (2017-03-27 19:53:11 UTC) #20
sath
On 2017/03/27 19:53:11, Peter Kasting wrote: > Still LGTM I fixed tests on Mac. Here ...
3 years, 8 months ago (2017-03-28 20:43:24 UTC) #40
Peter Kasting
https://codereview.chromium.org/2768633003/diff/140001/chrome/browser/sync/profile_sync_test_util.cc File chrome/browser/sync/profile_sync_test_util.cc (right): https://codereview.chromium.org/2768633003/diff/140001/chrome/browser/sync/profile_sync_test_util.cc#newcode78 chrome/browser/sync/profile_sync_test_util.cc:78: ProfileSyncService::InitParams init_params = Nit: I might inline this below ...
3 years, 8 months ago (2017-03-28 21:38:39 UTC) #43
sath
https://codereview.chromium.org/2768633003/diff/140001/chrome/browser/sync/profile_sync_test_util.cc File chrome/browser/sync/profile_sync_test_util.cc (right): https://codereview.chromium.org/2768633003/diff/140001/chrome/browser/sync/profile_sync_test_util.cc#newcode78 chrome/browser/sync/profile_sync_test_util.cc:78: ProfileSyncService::InitParams init_params = On 2017/03/28 21:38:39, Peter Kasting wrote: ...
3 years, 8 months ago (2017-03-29 06:26:15 UTC) #44
Peter Kasting
https://codereview.chromium.org/2768633003/diff/140001/chrome/browser/sync/profile_sync_test_util.h File chrome/browser/sync/profile_sync_test_util.h (right): https://codereview.chromium.org/2768633003/diff/140001/chrome/browser/sync/profile_sync_test_util.h#newcode61 chrome/browser/sync/profile_sync_test_util.h:61: std::unique_ptr<KeyedService> BuildNiceMockProfileSyncService( On 2017/03/29 06:26:15, sath wrote: > On ...
3 years, 8 months ago (2017-03-29 07:20:46 UTC) #45
sath
On 2017/03/29 07:20:46, Peter Kasting wrote: > https://codereview.chromium.org/2768633003/diff/140001/chrome/browser/sync/profile_sync_test_util.h > File chrome/browser/sync/profile_sync_test_util.h (right): > > https://codereview.chromium.org/2768633003/diff/140001/chrome/browser/sync/profile_sync_test_util.h#newcode61 ...
3 years, 8 months ago (2017-03-29 08:59:49 UTC) #46
sath
> Did the "uninteresting call"s result in test failures, or just output spew? > > ...
3 years, 8 months ago (2017-03-29 19:48:54 UTC) #52
Peter Kasting
LGTM
3 years, 8 months ago (2017-03-29 19:51:02 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2768633003/160001
3 years, 8 months ago (2017-03-29 19:52:10 UTC) #56
commit-bot: I haz the power
3 years, 8 months ago (2017-03-29 19:58:14 UTC) #59
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/0f51324df2b3f6a90d7454fe66a1...

Powered by Google App Engine
This is Rietveld 408576698