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

Side by Side Diff: chrome/common/chrome_switches.cc

Issue 1336763011: MD Settings: remove --enable-md-settings until it's more important (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: also about:flags Created 5 years, 3 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') | no next file » | 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 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 // Enables support for the QUIC protocol for insecure schemes (http://). 448 // Enables support for the QUIC protocol for insecure schemes (http://).
449 // This is a temporary testing flag. 449 // This is a temporary testing flag.
450 const char kEnableInsecureQuic[] = "enable-insecure-quic"; 450 const char kEnableInsecureQuic[] = "enable-insecure-quic";
451 451
452 // Enables the Material Design version of chrome://downloads. 452 // Enables the Material Design version of chrome://downloads.
453 const char kEnableMaterialDesignDownloads[] = "enable-md-downloads"; 453 const char kEnableMaterialDesignDownloads[] = "enable-md-downloads";
454 454
455 // Enables the Material Design version of chrome://extensions. 455 // Enables the Material Design version of chrome://extensions.
456 const char kEnableMaterialDesignExtensions[] = "enable-md-extensions"; 456 const char kEnableMaterialDesignExtensions[] = "enable-md-extensions";
457 457
458 // Enables the material design Settings feature.
459 const char kEnableMaterialDesignSettings[] = "enable-md-settings";
460
461 // Enables Media Router. 458 // Enables Media Router.
462 const char kEnableMediaRouter[] = "enable-media-router"; 459 const char kEnableMediaRouter[] = "enable-media-router";
463 460
464 // Runs the Native Client inside the renderer process and enables GPU plugin 461 // Runs the Native Client inside the renderer process and enables GPU plugin
465 // (internally adds lEnableGpuPlugin to the command line). 462 // (internally adds lEnableGpuPlugin to the command line).
466 const char kEnableNaCl[] = "enable-nacl"; 463 const char kEnableNaCl[] = "enable-nacl";
467 464
468 // Enables tracing for each navigation. It will attempt to trace each navigation 465 // Enables tracing for each navigation. It will attempt to trace each navigation
469 // for 10s, until the buffer is full, or until the next navigation. 466 // for 10s, until the buffer is full, or until the next navigation.
470 // It only works if a URL was provided by --trace-upload-url. 467 // It only works if a URL was provided by --trace-upload-url.
(...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after
1328 return SettingsWindowEnabled() && 1325 return SettingsWindowEnabled() &&
1329 !base::CommandLine::ForCurrentProcess()->HasSwitch( 1326 !base::CommandLine::ForCurrentProcess()->HasSwitch(
1330 ::switches::kDisableAboutInSettings); 1327 ::switches::kDisableAboutInSettings);
1331 } 1328 }
1332 1329
1333 bool MdExtensionsEnabled() { 1330 bool MdExtensionsEnabled() {
1334 return base::CommandLine::ForCurrentProcess()->HasSwitch( 1331 return base::CommandLine::ForCurrentProcess()->HasSwitch(
1335 ::switches::kEnableMaterialDesignExtensions); 1332 ::switches::kEnableMaterialDesignExtensions);
1336 } 1333 }
1337 1334
1338 bool MdSettingsEnabled() {
1339 return base::CommandLine::ForCurrentProcess()->HasSwitch(
1340 ::switches::kEnableMaterialDesignSettings);
1341 }
1342
1343 bool MediaRouterEnabled() { 1335 bool MediaRouterEnabled() {
1344 return base::CommandLine::ForCurrentProcess()->HasSwitch( 1336 return base::CommandLine::ForCurrentProcess()->HasSwitch(
1345 ::switches::kEnableMediaRouter); 1337 ::switches::kEnableMediaRouter);
1346 } 1338 }
1347 1339
1348 bool PdfMaterialUIEnabled() { 1340 bool PdfMaterialUIEnabled() {
1349 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnablePdfMaterialUI)) 1341 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnablePdfMaterialUI))
1350 return true; 1342 return true;
1351 1343
1352 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kDisablePdfMaterialUI)) 1344 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kDisablePdfMaterialUI))
(...skipping 29 matching lines...) Expand all
1382 1374
1383 // ----------------------------------------------------------------------------- 1375 // -----------------------------------------------------------------------------
1384 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1376 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1385 // 1377 //
1386 // You were going to just dump your switches here, weren't you? Instead, please 1378 // You were going to just dump your switches here, weren't you? Instead, please
1387 // put them in alphabetical order above, or in order inside the appropriate 1379 // put them in alphabetical order above, or in order inside the appropriate
1388 // ifdef at the bottom. The order should match the header. 1380 // ifdef at the bottom. The order should match the header.
1389 // ----------------------------------------------------------------------------- 1381 // -----------------------------------------------------------------------------
1390 1382
1391 } // namespace switches 1383 } // namespace switches
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698