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

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

Issue 2824073002: [sync] Prevent sessions flare on startup (Closed)
Patch Set: Created 3 years, 8 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
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;

Powered by Google App Engine
This is Rietveld 408576698