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

Unified Diff: chrome/browser/sync/sessions/browser_list_router_helper.h

Issue 2887513002: [sync] Scope BrowserListRouterHelper to browsers with a matching profile (Closed)
Patch Set: fix last memory leak Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/sync/sessions/browser_list_router_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/sessions/browser_list_router_helper.h
diff --git a/chrome/browser/sync/sessions/browser_list_router_helper.h b/chrome/browser/sync/sessions/browser_list_router_helper.h
index 16eccdd90161bf2694b6c7adf7a985344602e202..7b2e7bbb9bb4720d86f7a11a05c1edb3fa2a1ed3 100644
--- a/chrome/browser/sync/sessions/browser_list_router_helper.h
+++ b/chrome/browser/sync/sessions/browser_list_router_helper.h
@@ -18,7 +18,8 @@ namespace sync_sessions {
class BrowserListRouterHelper : public chrome::BrowserListObserver,
public TabStripModelObserver {
public:
- explicit BrowserListRouterHelper(SyncSessionsWebContentsRouter* router);
+ explicit BrowserListRouterHelper(SyncSessionsWebContentsRouter* router,
+ Profile* profile);
~BrowserListRouterHelper() override;
private:
@@ -34,6 +35,10 @@ class BrowserListRouterHelper : public chrome::BrowserListObserver,
// |router_| owns |this|.
SyncSessionsWebContentsRouter* router_;
+ Profile* profile_;
+
+ std::set<Browser*> attached_browsers_;
+
DISALLOW_COPY_AND_ASSIGN(BrowserListRouterHelper);
};
« no previous file with comments | « no previous file | chrome/browser/sync/sessions/browser_list_router_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698