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

Unified Diff: chrome/browser/extensions/unpacked_installer.h

Issue 2108853002: Restrict use of two app-launching command line flags (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert change to documentation file Created 4 years, 6 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/unpacked_installer.h
diff --git a/chrome/browser/extensions/unpacked_installer.h b/chrome/browser/extensions/unpacked_installer.h
index 2bdc85eb931dbfbad8b2bc745a0b49060354461d..602ec6eb354b5d4c1bbcaa640dc830197439fa31 100644
--- a/chrome/browser/extensions/unpacked_installer.h
+++ b/chrome/browser/extensions/unpacked_installer.h
@@ -51,7 +51,8 @@ class UnpackedInstaller
// The return value indicates whether the installation has begun successfully.
// The id of the extension being loaded is returned in |extension_id|.
bool LoadFromCommandLine(const base::FilePath& extension_path,
- std::string* extension_id);
+ std::string* extension_id,
+ bool only_allow_apps);
Devlin 2016/06/29 14:59:54 nit: I think this would be more flexible if we pas
proberge 2016/06/29 20:56:49 With only three call sites, this seems a bit overk
Devlin 2016/06/29 21:04:15 I imagine we'll want to make a similar change to t
// Allows prompting for plugins to be disabled; intended for testing only.
bool prompt_for_plugins() { return prompt_for_plugins_; }

Powered by Google App Engine
This is Rietveld 408576698