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

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

Issue 14858037: Move [Get|Set]WebStoreLogin methods from ExtensionPrefs to WebstorePrivateAPI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Latest master for CQ Created 7 years, 7 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') | no next file » | 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 083c7ad8c6288bb53a3292e5081155d7fd394ca5..c8ecea0e791803a7a7a65b94ec76861987f98133 100644
--- a/chrome/browser/extensions/extension_prefs.cc
+++ b/chrome/browser/extensions/extension_prefs.cc
@@ -128,10 +128,6 @@ const char kPrefAllowFileAccess[] = "newAllowFileAccess";
// the old flag and possibly go back to that name.
// const char kPrefAllowFileAccessOld[] = "allowFileAccess";
-// A preference set by the web store to indicate login information for
-// purchased apps.
-const char kWebStoreLogin[] = "extensions.webstore_login";
-
// A preference set by the the NTP to persist the desired launch container type
// used for apps.
const char kPrefLaunchType[] = "launchType";
@@ -1488,18 +1484,6 @@ scoped_ptr<ExtensionPrefs::ExtensionsInfo> ExtensionPrefs::
return extensions_info.Pass();
}
-bool ExtensionPrefs::GetWebStoreLogin(std::string* result) {
- if (prefs_->HasPrefPath(kWebStoreLogin)) {
- *result = prefs_->GetString(kWebStoreLogin);
- return true;
- }
- return false;
-}
-
-void ExtensionPrefs::SetWebStoreLogin(const std::string& login) {
- prefs_->SetString(kWebStoreLogin, login);
-}
-
bool ExtensionPrefs::WasAppDraggedByUser(const std::string& extension_id) {
return ReadPrefAsBooleanAndReturn(extension_id, kPrefUserDraggedApp);
}
@@ -1927,10 +1911,6 @@ void ExtensionPrefs::RegisterUserPrefs(
registry->RegisterListPref(prefs::kExtensionAllowedTypes,
user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
registry->RegisterStringPref(
- kWebStoreLogin,
- std::string(), // default value
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
- registry->RegisterStringPref(
prefs::kExtensionBlacklistUpdateVersion,
"0", // default value
user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
« no previous file with comments | « chrome/browser/extensions/extension_prefs.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698