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

Issue 2887513002: [sync] Scope BrowserListRouterHelper to browsers with a matching profile (Closed)

Created:
3 years, 7 months ago by Patrick Noland
Modified:
3 years, 7 months ago
Reviewers:
skym
CC:
chromium-reviews, sync-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[sync] Scope BrowserListRouterHelper to browsers with a matching profile BrowserListRouterHelper listens to tab insertion/removal events for any and all profiles, which duplicates events across multiple routers. This is wrong and bad. This CL induces BrowserListRouterHelper to only add itself as a listener for a browser with a matching profile. BUG=721410 R=skym@chromium.org Review-Url: https://codereview.chromium.org/2887513002 Cr-Commit-Position: refs/heads/master@{#472347} Committed: https://chromium.googlesource.com/chromium/src/+/952d07a6309c7e2a8f1531d85e3dcf626c3d5dd9

Patch Set 1 #

Total comments: 10

Patch Set 2 : Remove need for friend classing #

Total comments: 3

Patch Set 3 : Remove wrap, use ContainsValue #

Patch Set 4 : fix last memory leak #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -11 lines) Patch
M chrome/browser/sync/sessions/browser_list_router_helper.h View 1 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/sync/sessions/browser_list_router_helper.cc View 1 2 chunks +24 lines, -9 lines 0 comments Download
A chrome/browser/sync/sessions/browser_list_router_helper_unittest.cc View 1 2 3 1 chunk +101 lines, -0 lines 0 comments Download
M chrome/browser/sync/sessions/sync_sessions_web_contents_router.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 34 (23 generated)
Patrick Noland
Sky, PTAL
3 years, 7 months ago (2017-05-15 20:07:23 UTC) #3
skym
lgtm https://codereview.chromium.org/2887513002/diff/1/chrome/browser/sync/sessions/browser_list_router_helper_unittest.cc File chrome/browser/sync/sessions/browser_list_router_helper_unittest.cc (right): https://codereview.chromium.org/2887513002/diff/1/chrome/browser/sync/sessions/browser_list_router_helper_unittest.cc#newcode19 chrome/browser/sync/sessions/browser_list_router_helper_unittest.cc:19: std::set<Browser*> attached_browsers(SyncSessionsWebContentsRouter* router) { The naming for this ...
3 years, 7 months ago (2017-05-15 20:58:01 UTC) #6
Patrick Noland
https://codereview.chromium.org/2887513002/diff/1/chrome/browser/sync/sessions/browser_list_router_helper_unittest.cc File chrome/browser/sync/sessions/browser_list_router_helper_unittest.cc (right): https://codereview.chromium.org/2887513002/diff/1/chrome/browser/sync/sessions/browser_list_router_helper_unittest.cc#newcode19 chrome/browser/sync/sessions/browser_list_router_helper_unittest.cc:19: std::set<Browser*> attached_browsers(SyncSessionsWebContentsRouter* router) { On 2017/05/15 20:58:01, skym wrote: ...
3 years, 7 months ago (2017-05-15 21:56:52 UTC) #9
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/2887513002/20001
3 years, 7 months ago (2017-05-15 23:47:15 UTC) #13
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/2887513002/20001
3 years, 7 months ago (2017-05-15 23:48:51 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/371412)
3 years, 7 months ago (2017-05-16 04:18:05 UTC) #18
skym
Still lgtm https://codereview.chromium.org/2887513002/diff/20001/chrome/browser/sync/sessions/browser_list_router_helper_unittest.cc File chrome/browser/sync/sessions/browser_list_router_helper_unittest.cc (right): https://codereview.chromium.org/2887513002/diff/20001/chrome/browser/sync/sessions/browser_list_router_helper_unittest.cc#newcode16 chrome/browser/sync/sessions/browser_list_router_helper_unittest.cc:16: class MockLocalSessionEventHandler : public LocalSessionEventHandler { Thanks ...
3 years, 7 months ago (2017-05-16 16:11:26 UTC) #19
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/2887513002/40001
3 years, 7 months ago (2017-05-16 18:35:32 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/372344)
3 years, 7 months ago (2017-05-16 23:35:55 UTC) #28
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/2887513002/60001
3 years, 7 months ago (2017-05-16 23:47:44 UTC) #31
commit-bot: I haz the power
3 years, 7 months ago (2017-05-17 06:06:14 UTC) #34
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/952d07a6309c7e2a8f1531d85e3d...

Powered by Google App Engine
This is Rietveld 408576698