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

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

Issue 2108853002: Restrict use of two app-launching command line flags (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add /* explanation */ for the bool parameter Created 4 years, 5 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_system_impl.cc
diff --git a/chrome/browser/extensions/extension_system_impl.cc b/chrome/browser/extensions/extension_system_impl.cc
index fa7596f5ad8971e9170674d058eb884391aea2e6..7ad271fb3f43013de9764883fb31efe972d087de 100644
--- a/chrome/browser/extensions/extension_system_impl.cc
+++ b/chrome/browser/extensions/extension_system_impl.cc
@@ -275,8 +275,9 @@ void ExtensionSystemImpl::Shared::Init(bool extensions_enabled) {
t(path_list, FILE_PATH_LITERAL(","));
while (t.GetNext()) {
std::string extension_id;
- UnpackedInstaller::Create(extension_service_.get())->
- LoadFromCommandLine(base::FilePath(t.token()), &extension_id);
+ UnpackedInstaller::Create(extension_service_.get())
+ ->LoadFromCommandLine(base::FilePath(t.token()), &extension_id,
+ false /* only_allow_apps */);
}
}
}

Powered by Google App Engine
This is Rietveld 408576698