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

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

Issue 10827268: Added flag --extensions-in-action-box to split Action Box and Extensions in it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed IsActionBoxEnabled() Created 8 years, 4 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 | « chrome/common/extensions/extension_switch_utils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8b41231917b059c0acb68c24542dda745838f411..76e8ed4ac76991137b407e8a0ee24342f3d1d618 100644
--- a/chrome/common/extensions/extension_switch_utils.cc
+++ b/chrome/common/extensions/extension_switch_utils.cc
@@ -22,9 +22,10 @@ bool IsEasyOffStoreInstallEnabled() {
#endif
}
-bool IsActionBoxEnabled() {
- return CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableActionBox);
+bool IsExtensionsInActionBoxEnabled() {
+ CommandLine* command_line = CommandLine::ForCurrentProcess();
+ return command_line->HasSwitch(switches::kEnableActionBox) &&
+ command_line->HasSwitch(switches::kEnableExtensionsInActionBox);
}
bool AreScriptBadgesEnabled() {
« no previous file with comments | « chrome/common/extensions/extension_switch_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698