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

Unified Diff: chrome/browser/extensions/extension_prefs.h

Issue 8399022: Add a couple of notifications related settings to app/extensions sync: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 2 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/extensions/extension_prefs.h
===================================================================
--- chrome/browser/extensions/extension_prefs.h (revision 107300)
+++ chrome/browser/extensions/extension_prefs.h (working copy)
@@ -171,6 +171,15 @@
// reset it. Don't call it unless you mean it!
bool SetAlertSystemFirstRun();
+ // Whether the notifications initial setup is done for the given extension.
asargent_no_longer_on_chrome 2011/10/27 16:52:21 change "given extension" to "given app" in the com
Munjal (Google) 2011/10/27 18:35:05 Done.
+ bool IsNotificationsInitialSetupDone(const std::string& extension_id) const;
+ void SetNotificationsInitialSetupDone(const std::string& extension_id,
asargent_no_longer_on_chrome 2011/10/27 16:52:21 Suggest changing names to: IsAppNotificationSetup
Munjal (Google) 2011/10/27 18:35:05 Done.
+ bool value);
+
+ // Whether notifications are disabled for the given extension.
asargent_no_longer_on_chrome 2011/10/27 16:52:21 change "given extension" to "given app" in the com
Munjal (Google) 2011/10/27 18:35:05 Done.
+ bool IsNotificationsDisabled(const std::string& extension_id) const;
+ void SetNotificationsDisabled(const std::string& extension_id, bool value);
asargent_no_longer_on_chrome 2011/10/27 16:52:21 Suggest changing names to: IsAppNotificationDisab
Munjal (Google) 2011/10/27 18:35:05 Done.
+
// Is the extension with |extension_id| allowed by policy (checking both
// whitelist and blacklist).
bool IsExtensionAllowedByPolicy(const std::string& extension_id);
@@ -429,7 +438,7 @@
// Reads a boolean pref |pref_key| from extension with id |extension_id|.
bool ReadExtensionPrefBoolean(const std::string& extension_id,
- const std::string& pref_key);
+ const std::string& pref_key) const;
// Reads an integer pref from |ext| with key |pref_key|.
// Return false if the value does not exist.
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_prefs.cc » ('j') | chrome/browser/extensions/extension_prefs.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698