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

Unified Diff: chrome/browser/sync/profile_sync_service.h

Issue 7481023: Adding notifications for new sync types. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Now stores acknowledged types in a ListValue, not a StringValue. Created 9 years, 4 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/profile_sync_service.h
diff --git a/chrome/browser/sync/profile_sync_service.h b/chrome/browser/sync/profile_sync_service.h
index b24503b66226e5b35fcba9cf5828a4789bda0043..eed99d06b7bc24821e1b2daad8c151c69b3658c2 100644
--- a/chrome/browser/sync/profile_sync_service.h
+++ b/chrome/browser/sync/profile_sync_service.h
@@ -469,6 +469,14 @@ class ProfileSyncService : public browser_sync::SyncFrontend,
SigninManager* signin() { return signin_.get(); }
const std::string& cros_user() const { return cros_user_; }
+ // Returns any promo text the sync engine wants to display on the NTP, or an
akalin 2011/08/10 01:16:21 FIx comment
Andrew T Wilson (Slow) 2011/08/10 23:40:12 Done.
+ // empty string if no promo is needed.
+ syncable::ModelTypeBitSet GetUnacknowledgedTypes() const;
+
+ // Marks all currently registered types as "acknowledged" so we won't prompt
+ // the user about them any more.
+ void AcknowledgeSyncedTypes();
+
protected:
// Used by test classes that derive from ProfileSyncService.
virtual browser_sync::SyncBackendHost* GetBackendForTest();

Powered by Google App Engine
This is Rietveld 408576698