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

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: 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 ed8e2c08c74804c08c2d834acb0f7edf00610c63..0a621ca8d090cee864346737f35ac966d3509e91 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,
+ WideToASCII(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;

Powered by Google App Engine
This is Rietveld 408576698