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

Side by Side 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: Review 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 unified diff | Download patch
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | chrome/utility/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/common/chrome_switches.h" 5 #include "chrome/common/chrome_switches.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 9
10 namespace switches { 10 namespace switches {
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 // issues relating to IPv6, but shouldn't otherwise be needed. Be sure to file 270 // issues relating to IPv6, but shouldn't otherwise be needed. Be sure to file
271 // bugs if something isn't working properly in the presence of IPv6. This flag 271 // bugs if something isn't working properly in the presence of IPv6. This flag
272 // can be overidden by the "enable-ipv6" flag. 272 // can be overidden by the "enable-ipv6" flag.
273 const char kDisableIPv6[] = "disable-ipv6"; 273 const char kDisableIPv6[] = "disable-ipv6";
274 274
275 // Disable the behavior that the second click on a launcher item (the click when 275 // Disable the behavior that the second click on a launcher item (the click when
276 // the item is already active) minimizes the item. 276 // the item is already active) minimizes the item.
277 const char kDisableMinimizeOnSecondLauncherItemClick[] = 277 const char kDisableMinimizeOnSecondLauncherItemClick[] =
278 "disable-minimize-on-second-launcher-item-click"; 278 "disable-minimize-on-second-launcher-item-click";
279 279
280 // Disable using Mojo for utility process services.
281 const char kDisableMojoUtilityServices[] = "disable-mojo-utility-services";
282
280 // Disables the new bookmark app system. 283 // Disables the new bookmark app system.
281 const char kDisableNewBookmarkApps[] = "disable-new-bookmark-apps"; 284 const char kDisableNewBookmarkApps[] = "disable-new-bookmark-apps";
282 285
283 // Disables the new offline error page generated by NetErrorHelper for ChromeOS 286 // Disables the new offline error page generated by NetErrorHelper for ChromeOS
284 // and instead uses the old error page generated by OfflineResourceThrottle. 287 // and instead uses the old error page generated by OfflineResourceThrottle.
285 const char kDisableNewOfflineErrorPage[] = "disable-new-offline-error-page"; 288 const char kDisableNewOfflineErrorPage[] = "disable-new-offline-error-page";
286 289
287 // Disables the menu on the NTP for accessing sessions from other devices. 290 // Disables the menu on the NTP for accessing sessions from other devices.
288 const char kDisableNTPOtherSessionsMenu[] = "disable-ntp-other-sessions-menu"; 291 const char kDisableNTPOtherSessionsMenu[] = "disable-ntp-other-sessions-menu";
289 292
(...skipping 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after
1380 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnablePdfMaterialUI)) 1383 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnablePdfMaterialUI))
1381 return true; 1384 return true;
1382 1385
1383 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kDisablePdfMaterialUI)) 1386 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kDisablePdfMaterialUI))
1384 return false; 1387 return false;
1385 1388
1386 // Default. 1389 // Default.
1387 return false; 1390 return false;
1388 } 1391 }
1389 1392
1393 bool MojoUtilityServicesEnabled() {
jam 2015/05/12 23:24:57 we don't add methods for checking if one switch is
Anand Mistry (off Chromium) 2015/05/13 04:35:11 The main reason I have this here is so that this c
1394 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
1395 kDisableMojoUtilityServices)) {
1396 return false;
1397 }
1398
1399 return true;
1400 }
1401
1390 bool SettingsWindowEnabled() { 1402 bool SettingsWindowEnabled() {
1391 #if defined(OS_CHROMEOS) 1403 #if defined(OS_CHROMEOS)
1392 return !base::CommandLine::ForCurrentProcess()->HasSwitch( 1404 return !base::CommandLine::ForCurrentProcess()->HasSwitch(
1393 ::switches::kDisableSettingsWindow); 1405 ::switches::kDisableSettingsWindow);
1394 #else 1406 #else
1395 return base::CommandLine::ForCurrentProcess()->HasSwitch( 1407 return base::CommandLine::ForCurrentProcess()->HasSwitch(
1396 ::switches::kEnableSettingsWindow); 1408 ::switches::kEnableSettingsWindow);
1397 #endif 1409 #endif
1398 } 1410 }
1399 1411
1400 #if defined(OS_CHROMEOS) 1412 #if defined(OS_CHROMEOS)
1401 bool PowerOverlayEnabled() { 1413 bool PowerOverlayEnabled() {
1402 return base::CommandLine::ForCurrentProcess()->HasSwitch( 1414 return base::CommandLine::ForCurrentProcess()->HasSwitch(
1403 ::switches::kEnablePowerOverlay); 1415 ::switches::kEnablePowerOverlay);
1404 } 1416 }
1405 #endif 1417 #endif
1406 1418
1407 // ----------------------------------------------------------------------------- 1419 // -----------------------------------------------------------------------------
1408 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1420 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1409 // 1421 //
1410 // You were going to just dump your switches here, weren't you? Instead, please 1422 // You were going to just dump your switches here, weren't you? Instead, please
1411 // put them in alphabetical order above, or in order inside the appropriate 1423 // put them in alphabetical order above, or in order inside the appropriate
1412 // ifdef at the bottom. The order should match the header. 1424 // ifdef at the bottom. The order should match the header.
1413 // ----------------------------------------------------------------------------- 1425 // -----------------------------------------------------------------------------
1414 1426
1415 } // namespace switches 1427 } // namespace switches
OLDNEW
« 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