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

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 app notifications setup is done for the given app.
+ bool IsAppNotificationSetupDone(const std::string& extension_id) const;
+ void SetAppNotificationSetupDone(const std::string& extension_id,
+ bool value);
+
+ // Whether app notifications are disabled for the given app.
+ bool IsAppNotificationDisabled(const std::string& extension_id) const;
+ void SetAppNotificationDisabled(const std::string& extension_id, bool value);
+
// 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