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

Unified Diff: components/sync_sessions/local_session_event_router.h

Issue 2750163003: Prevent tabs sync during browser shutdown.
Patch Set: Created 3 years, 9 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: components/sync_sessions/local_session_event_router.h
diff --git a/components/sync_sessions/local_session_event_router.h b/components/sync_sessions/local_session_event_router.h
index 51b07c3db0317478256a4042a4da75ed571f89cf..4c1e0f609bfdcd24a82c204f3e47cc5250a63137 100644
--- a/components/sync_sessions/local_session_event_router.h
+++ b/components/sync_sessions/local_session_event_router.h
@@ -35,6 +35,11 @@ class LocalSessionEventHandler {
virtual void OnFaviconsChanged(const std::set<GURL>& page_urls,
const GURL& icon_url) = 0;
+ // A flag set when browsers are closing, so we shouldn't send tabs
+ // closing events to sync server. Tabs will be restored on the next browser
+ // start.
+ virtual void SetAllBrowsersClosing(bool browsers_closing) = 0;
+
protected:
LocalSessionEventHandler() {}

Powered by Google App Engine
This is Rietveld 408576698