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

Unified Diff: apps/app_load_service.cc

Issue 2180853004: Revert of Restrict use of two app-launching command line flags (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « apps/DEPS ('k') | apps/load_and_launch_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/app_load_service.cc
diff --git a/apps/app_load_service.cc b/apps/app_load_service.cc
index c89a3692bf4ef15e29492daa8dfb93af37162753..eb4b5c6b1c5e7231fe7bd59986da09a0b808b3c0 100644
--- a/apps/app_load_service.cc
+++ b/apps/app_load_service.cc
@@ -64,9 +64,8 @@
ExtensionService* extension_service =
ExtensionSystem::Get(profile_)->extension_service();
std::string extension_id;
- if (!extensions::UnpackedInstaller::Create(extension_service)
- ->LoadFromCommandLine(base::FilePath(extension_path), &extension_id,
- true /* only_allow_apps */)) {
+ if (!extensions::UnpackedInstaller::Create(extension_service)->
+ LoadFromCommandLine(base::FilePath(extension_path), &extension_id)) {
return false;
}
@@ -82,9 +81,8 @@
ExtensionService* extension_service =
ExtensionSystem::Get(profile_)->extension_service();
std::string extension_id;
- return extensions::UnpackedInstaller::Create(extension_service)
- ->LoadFromCommandLine(base::FilePath(extension_path), &extension_id,
- true /* only_allow_apps */);
+ return extensions::UnpackedInstaller::Create(extension_service)->
+ LoadFromCommandLine(base::FilePath(extension_path), &extension_id);
}
// static
« no previous file with comments | « apps/DEPS ('k') | apps/load_and_launch_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698