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

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

Issue 15051010: Move [Get|Set]UpdateURLData from ExtensionPrefs to ExtensionAPI (aka Module) (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Android Gypi 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') | chrome/browser/extensions/updater/extension_updater.cc » ('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 6f9f5194bc25283b87a49ede11e3bb87624acb3e..083c7ad8c6288bb53a3292e5081155d7fd394ca5 100644
--- a/chrome/browser/extensions/extension_prefs.cc
+++ b/chrome/browser/extensions/extension_prefs.cc
@@ -139,9 +139,6 @@ const char kPrefLaunchType[] = "launchType";
// A preference specifying if the user dragged the app on the NTP.
const char kPrefUserDraggedApp[] = "user_dragged_app_ntp";
-// A preference for storing extra data sent in update checks for an extension.
-const char kUpdateUrlData[] = "update_url_data";
-
// Preferences that hold which permissions the user has granted the extension.
// We explicitly keep track of these so that extensions can contain unknown
// permissions, for backwards compatibility reasons, and we can still prompt
@@ -1512,22 +1509,6 @@ void ExtensionPrefs::SetAppDraggedByUser(const std::string& extension_id) {
Value::CreateBooleanValue(true));
}
-void ExtensionPrefs::SetUpdateUrlData(const std::string& extension_id,
- const std::string& data) {
- UpdateExtensionPref(extension_id, kUpdateUrlData,
- Value::CreateStringValue(data));
-}
-
-std::string ExtensionPrefs::GetUpdateUrlData(const std::string& extension_id) {
- const DictionaryValue* dictionary = GetExtensionPref(extension_id);
- if (!dictionary)
- return std::string();
-
- std::string data;
- dictionary->GetString(kUpdateUrlData, &data);
- return data;
-}
-
void ExtensionPrefs::OnContentSettingChanged(
const std::string& extension_id,
bool incognito) {
« no previous file with comments | « chrome/browser/extensions/extension_prefs.h ('k') | chrome/browser/extensions/updater/extension_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698