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

Unified Diff: components/ntp_snippets/sessions/tab_delegate_sync_adapter.h

Issue 2578293002: Foreign tab suggestions should update when disabling sync or signing out. (Closed)
Patch Set: Adding the const back to .cc Created 4 years 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/ntp_snippets/sessions/tab_delegate_sync_adapter.h
diff --git a/components/ntp_snippets/sessions/tab_delegate_sync_adapter.h b/components/ntp_snippets/sessions/tab_delegate_sync_adapter.h
index 8796444c6fede0f5a133ef734a28c7c52ef6622d..cac1ca42d525466b28aefbbcca9cc968479b07bf 100644
--- a/components/ntp_snippets/sessions/tab_delegate_sync_adapter.h
+++ b/components/ntp_snippets/sessions/tab_delegate_sync_adapter.h
@@ -45,6 +45,10 @@ class TabDelegateSyncAdapter : public syncer::SyncServiceObserver,
syncer::SyncService* sync_service_;
base::Closure change_callback_;
+ // Represents whether there was session data the last time |change_callback_|
+ // was invoked.
+ bool had_session_data_ = false;
+
DISALLOW_COPY_AND_ASSIGN(TabDelegateSyncAdapter);
};

Powered by Google App Engine
This is Rietveld 408576698