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

Unified Diff: chrome/browser/ui/webui/ntp/ntp_resource_cache.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/ui/webui/ntp/ntp_resource_cache.h
diff --git a/chrome/browser/ui/webui/ntp/ntp_resource_cache.h b/chrome/browser/ui/webui/ntp/ntp_resource_cache.h
index 67be6fce36fa9de72ab5b4f83379d20bc443dc96..6bfff511a4db4189b281cf0a0c079b7591504baa 100644
--- a/chrome/browser/ui/webui/ntp/ntp_resource_cache.h
+++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache.h
@@ -8,6 +8,7 @@
#include "base/basictypes.h"
#include "base/memory/ref_counted.h"
+#include "base/string16.h"
#include "chrome/browser/prefs/pref_change_registrar.h"
#include "chrome/browser/profiles/profile_keyed_service.h"
#include "content/common/notification_observer.h"
@@ -35,6 +36,10 @@ class NTPResourceCache : public NotificationObserver,
private:
Profile* profile_;
+ // Returns a message describing any newly-added sync types, or an empty
+ // string if all types have already been acknowledged.
+ string16 GetSyncTypeMessage();
+
void CreateNewTabIncognitoHTML();
scoped_refptr<RefCountedMemory> new_tab_incognito_html_;
void CreateNewTabHTML();

Powered by Google App Engine
This is Rietveld 408576698