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

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: 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
Index: chrome/browser/extensions/extension_prefs.cc
diff --git a/chrome/browser/extensions/extension_prefs.cc b/chrome/browser/extensions/extension_prefs.cc
index a200bfcedbd2086b7a256bec0aac0a4a99cfaa8c..f8f72dd812fc29507a7d392c4c5197d57ee16593 100644
--- a/chrome/browser/extensions/extension_prefs.cc
+++ b/chrome/browser/extensions/extension_prefs.cc
@@ -136,9 +136,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
@@ -1590,22 +1587,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) {

Powered by Google App Engine
This is Rietveld 408576698