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

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

Issue 12680004: Remove chrome/ code to handle App Notifications (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge conflicts. Created 7 years, 9 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
« no previous file with comments | « chrome/browser/extensions/extension_prefs.h ('k') | chrome/browser/extensions/extension_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_prefs.cc
diff --git a/chrome/browser/extensions/extension_prefs.cc b/chrome/browser/extensions/extension_prefs.cc
index 31d0d888c20842d1e4b4114e2714cddd7da82db4..0d560fe5bee038a21ab5cf168e5879200eb2520d 100644
--- a/chrome/browser/extensions/extension_prefs.cc
+++ b/chrome/browser/extensions/extension_prefs.cc
@@ -73,12 +73,6 @@ const char kPrefVersion[] = "manifest.version";
// Indicates whether an extension is blacklisted.
const char kPrefBlacklist[] = "blacklist";
-// The oauth client id used for app notification setup.
-const char kPrefAppNotificationClientId[] = "app_notif_client_id";
-
-// Indicates whether the user has disabled notifications or not.
-const char kPrefAppNotificationDisbaled[] = "app_notif_disabled";
-
// The count of how many times we prompted the user to acknowledge an
// extension.
const char kPrefAcknowledgePromptCount[] = "ack_prompt_count";
@@ -664,37 +658,6 @@ bool ExtensionPrefs::SetAlertSystemFirstRun() {
return false;
}
-std::string ExtensionPrefs::GetAppNotificationClientId(
- const std::string& extension_id) const {
- const DictionaryValue* dict = GetExtensionPref(extension_id);
- if (!dict || !dict->HasKey(kPrefAppNotificationClientId))
- return std::string();
-
- std::string tmp;
- dict->GetString(kPrefAppNotificationClientId, &tmp);
- return tmp;
-}
-
-void ExtensionPrefs::SetAppNotificationClientId(
- const std::string& extension_id,
- const std::string& oauth_client_id) {
- DCHECK(Extension::IdIsValid(extension_id));
- UpdateExtensionPref(extension_id, kPrefAppNotificationClientId,
- Value::CreateStringValue(oauth_client_id));
-}
-
-bool ExtensionPrefs::IsAppNotificationDisabled(
- const std::string& extension_id) const {
- return ReadExtensionPrefBoolean(extension_id, kPrefAppNotificationDisbaled);
-}
-
-void ExtensionPrefs::SetAppNotificationDisabled(
- const std::string& extension_id, bool value) {
- DCHECK(Extension::IdIsValid(extension_id));
- UpdateExtensionPref(extension_id, kPrefAppNotificationDisbaled,
- Value::CreateBooleanValue(value));
-}
-
bool ExtensionPrefs::ExtensionsBlacklistedByDefault() const {
return admin_policy::BlacklistedByDefault(
prefs_->GetList(prefs::kExtensionInstallDenyList));
« no previous file with comments | « chrome/browser/extensions/extension_prefs.h ('k') | chrome/browser/extensions/extension_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698