| 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));
|
|
|