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

Unified Diff: chrome/common/chrome_switches.cc

Issue 1028543002: Turn the utility process image decoder into a Mojo service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and address comments. Created 5 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
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | chrome/utility/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_switches.cc
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc
index a1cb02bb0d4a664e2431eff1bf9c028db2bbd042..e47c45379fb4c95e39e3aef54511259ffb54ff82 100644
--- a/chrome/common/chrome_switches.cc
+++ b/chrome/common/chrome_switches.cc
@@ -274,6 +274,9 @@ const char kDisableIPv6[] = "disable-ipv6";
const char kDisableMinimizeOnSecondLauncherItemClick[] =
"disable-minimize-on-second-launcher-item-click";
+// Disable using Mojo for utility process services.
+const char kDisableMojoUtilityServices[] = "disable-mojo-utility-services";
+
// Disables the new bookmark app system.
const char kDisableNewBookmarkApps[] = "disable-new-bookmark-apps";
@@ -1351,6 +1354,15 @@ bool PdfMaterialUIEnabled() {
return false;
}
+bool MojoUtilityServicesEnabled() {
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ kDisableMojoUtilityServices)) {
+ return false;
+ }
+
+ return true;
+}
+
bool SettingsWindowEnabled() {
#if defined(OS_CHROMEOS)
return !base::CommandLine::ForCurrentProcess()->HasSwitch(
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | chrome/utility/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698