Chromium Code Reviews| Index: chrome/browser/sync/sessions/sync_sessions_web_contents_router.h |
| diff --git a/chrome/browser/sync/sessions/sync_sessions_web_contents_router.h b/chrome/browser/sync/sessions/sync_sessions_web_contents_router.h |
| index dc698f280ca2704828061d015f5c64af68173c63..7a706c68d491d843ad63aa8ef01a8c2c0fdabb66 100644 |
| --- a/chrome/browser/sync/sessions/sync_sessions_web_contents_router.h |
| +++ b/chrome/browser/sync/sessions/sync_sessions_web_contents_router.h |
| @@ -24,6 +24,7 @@ class Profile; |
| namespace sync_sessions { |
| class BrowserListRouterHelper; |
| +class SyncSessionsClient; |
| // WebContentsObserver-based implementation of LocalSessionEventRouter. This |
| // class is responsible for notifying Sessions Sync when local tabs are |
| @@ -40,6 +41,9 @@ class SyncSessionsWebContentsRouter : public LocalSessionEventRouter, |
| // Inject a flare that can be used to start sync. See the comment for |
| // StartSyncFlare in syncable_service.h for more. |
| void InjectStartSyncFlare(syncer::SyncableService::StartSyncFlare flare); |
| + void SetSyncSessionsClient(SyncSessionsClient* sessions_client) { |
|
skym
2017/04/18 15:50:51
https://google.github.io/styleguide/cppguide.html#
Patrick Noland
2017/04/18 22:37:41
Acknowledged.
|
| + sessions_client_ = sessions_client; |
| + } |
| // SessionsSyncManager::LocalEventRouter implementation. |
| void StartRoutingTo(LocalSessionEventHandler* handler) override; |
| @@ -57,6 +61,7 @@ class SyncSessionsWebContentsRouter : public LocalSessionEventRouter, |
| std::unique_ptr<base::CallbackList<void(const std::set<GURL>&, |
| const GURL&)>::Subscription> |
| favicon_changed_subscription_; |
| + SyncSessionsClient* sessions_client_ = nullptr; |
| syncer::SyncableService::StartSyncFlare flare_; |
| LocalSessionEventHandler* handler_ = nullptr; |