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

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

Issue 196663003: Introduce an extension parameter which is used to customize the extension. It's available for exter… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Modified test parameters Created 6 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
Index: chrome/browser/extensions/external_registry_loader_win.cc
diff --git a/chrome/browser/extensions/external_registry_loader_win.cc b/chrome/browser/extensions/external_registry_loader_win.cc
index d988f49bc90e0c10e91d3e9982350eefb3f15c52..5bd56179fd553b3be091b46fa921e62e41358d2d 100644
--- a/chrome/browser/extensions/external_registry_loader_win.cc
+++ b/chrome/browser/extensions/external_registry_loader_win.cc
@@ -26,6 +26,9 @@ namespace {
// The Registry subkey that contains information about external extensions.
const char kRegistryExtensions[] = "Software\\Google\\Chrome\\Extensions";
+// Registry value of the key that defines the installation parameter.
+const wchar_t kRegistryExtensionInstallParam[] = L"install_parameter";
+
// Registry value of the key that defines the path to the .crx file.
const wchar_t kRegistryExtensionPath[] = L"path";
@@ -94,6 +97,13 @@ void ExternalRegistryLoader::LoadOnFileThread() {
continue;
}
+ base::string16 extension_dist_id;
+ if (key.ReadValue(kRegistryExtensionInstallParam, &extension_dist_id) ==
+ ERROR_SUCCESS) {
+ prefs->SetString(id + "." + ExternalProviderImpl::kInstallParam,
+ base::UTF16ToASCII(extension_dist_id));
+ }
+
// If there is an update URL present, copy it to prefs and ignore
// path and version keys for this entry.
base::string16 extension_update_url;
« no previous file with comments | « chrome/browser/extensions/external_provider_impl.cc ('k') | chrome/browser/extensions/pending_extension_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698