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

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

Issue 1319163004: [Extensions Page MD] Stub out a materialized extensions page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 // crbug.com/142458 . 442 // crbug.com/142458 .
443 const char kEnableFastUnload[] = "enable-fast-unload"; 443 const char kEnableFastUnload[] = "enable-fast-unload";
444 444
445 // Comma-separated list of feature names to enable. See also kDisableFeatures. 445 // Comma-separated list of feature names to enable. See also kDisableFeatures.
446 const char kEnableFeatures[] = "enable-features"; 446 const char kEnableFeatures[] = "enable-features";
447 447
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://extensions.
453 const char kEnableMaterialDesignExtensions[] = "enable-md-extensions";
Dan Beam 2015/09/09 00:05:02 nit: below Downloads for alphabetization purposes
Devlin 2015/09/09 15:46:06 Done.
454
452 // Enables the Material Design version of chrome://downloads. 455 // Enables the Material Design version of chrome://downloads.
453 const char kEnableMaterialDesignDownloads[] = "enable-md-downloads"; 456 const char kEnableMaterialDesignDownloads[] = "enable-md-downloads";
454 457
455 // Enables the material design Settings feature. 458 // Enables the material design Settings feature.
456 const char kEnableMaterialDesignSettings[] = "enable-md-settings"; 459 const char kEnableMaterialDesignSettings[] = "enable-md-settings";
457 460
458 // Enables Media Router. 461 // Enables Media Router.
459 const char kEnableMediaRouter[] = "enable-media-router"; 462 const char kEnableMediaRouter[] = "enable-media-router";
460 463
461 // Runs the Native Client inside the renderer process and enables GPU plugin 464 // Runs the Native Client inside the renderer process and enables GPU plugin
(...skipping 854 matching lines...) Expand 10 before | Expand all | Expand 10 after
1316 // Disables the new implementation of the task manager. 1319 // Disables the new implementation of the task manager.
1317 const char kDisableNewTaskManager[] = "disable-new-task-manager"; 1320 const char kDisableNewTaskManager[] = "disable-new-task-manager";
1318 #endif // defined(ENABLE_TASK_MANAGER) 1321 #endif // defined(ENABLE_TASK_MANAGER)
1319 1322
1320 bool AboutInSettingsEnabled() { 1323 bool AboutInSettingsEnabled() {
1321 return SettingsWindowEnabled() && 1324 return SettingsWindowEnabled() &&
1322 !base::CommandLine::ForCurrentProcess()->HasSwitch( 1325 !base::CommandLine::ForCurrentProcess()->HasSwitch(
1323 ::switches::kDisableAboutInSettings); 1326 ::switches::kDisableAboutInSettings);
1324 } 1327 }
1325 1328
1329 bool MdExtensionsEnabled() {
1330 return base::CommandLine::ForCurrentProcess()->HasSwitch(
1331 ::switches::kEnableMaterialDesignExtensions);
1332 }
1333
1326 bool MdSettingsEnabled() { 1334 bool MdSettingsEnabled() {
1327 return base::CommandLine::ForCurrentProcess()->HasSwitch( 1335 return base::CommandLine::ForCurrentProcess()->HasSwitch(
1328 ::switches::kEnableMaterialDesignSettings); 1336 ::switches::kEnableMaterialDesignSettings);
1329 } 1337 }
1330 1338
1331 bool MediaRouterEnabled() { 1339 bool MediaRouterEnabled() {
1332 return base::CommandLine::ForCurrentProcess()->HasSwitch( 1340 return base::CommandLine::ForCurrentProcess()->HasSwitch(
1333 ::switches::kEnableMediaRouter); 1341 ::switches::kEnableMediaRouter);
1334 } 1342 }
1335 1343
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
1370 1378
1371 // ----------------------------------------------------------------------------- 1379 // -----------------------------------------------------------------------------
1372 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1380 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1373 // 1381 //
1374 // You were going to just dump your switches here, weren't you? Instead, please 1382 // You were going to just dump your switches here, weren't you? Instead, please
1375 // put them in alphabetical order above, or in order inside the appropriate 1383 // put them in alphabetical order above, or in order inside the appropriate
1376 // ifdef at the bottom. The order should match the header. 1384 // ifdef at the bottom. The order should match the header.
1377 // ----------------------------------------------------------------------------- 1385 // -----------------------------------------------------------------------------
1378 1386
1379 } // namespace switches 1387 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698