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

Unified Diff: chrome/common/extensions/extension_switch_utils.cc

Issue 10452009: Improve the UI for disabling off-store extension install. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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/common/extensions/extension_switch_utils.cc
diff --git a/chrome/common/extensions/extension_switch_utils.cc b/chrome/common/extensions/extension_switch_utils.cc
index 36d8a8046cfe38144c591b47521b9ab131e33484..a748847213dbdefe9e7f63365418a12583ab6497 100644
--- a/chrome/common/extensions/extension_switch_utils.cc
+++ b/chrome/common/extensions/extension_switch_utils.cc
@@ -17,8 +17,11 @@ bool IsOffStoreInstallEnabled() {
#if defined(USE_AURA)
return true;
#else
- return CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableOffStoreExtensionInstall);
+ // Currently, we default to enabling off-store install.
+ std::string switch_value =
+ CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
+ switches::kEnableOffStoreExtensionInstall);
+ return switch_value != "0";
#endif
}

Powered by Google App Engine
This is Rietveld 408576698