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

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

Issue 1766273002: Convert --enable-md-history to a feature flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync to the latest update and resolve a merge conflict Created 4 years, 9 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 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 "enable-extension-activity-log-testing"; 419 "enable-extension-activity-log-testing";
420 420
421 // Enable the fast unload controller, which speeds up tab/window close by 421 // Enable the fast unload controller, which speeds up tab/window close by
422 // running a tab's onunload js handler independently of the GUI - 422 // running a tab's onunload js handler independently of the GUI -
423 // crbug.com/142458 . 423 // crbug.com/142458 .
424 const char kEnableFastUnload[] = "enable-fast-unload"; 424 const char kEnableFastUnload[] = "enable-fast-unload";
425 425
426 // Enables the Material Design version of chrome://extensions. 426 // Enables the Material Design version of chrome://extensions.
427 const char kEnableMaterialDesignExtensions[] = "enable-md-extensions"; 427 const char kEnableMaterialDesignExtensions[] = "enable-md-extensions";
428 428
429 // Enables the Material Design version of chrome://history.
430 const char kEnableMaterialDesignHistory[] = "enable-md-history";
431
432 // Enables the Material Design policy page at chrome://md-policy. 429 // Enables the Material Design policy page at chrome://md-policy.
433 const char kEnableMaterialDesignPolicyPage[] = "enable-md-policy-page"; 430 const char kEnableMaterialDesignPolicyPage[] = "enable-md-policy-page";
434 431
435 // Runs the Native Client inside the renderer process and enables GPU plugin 432 // Runs the Native Client inside the renderer process and enables GPU plugin
436 // (internally adds lEnableGpuPlugin to the command line). 433 // (internally adds lEnableGpuPlugin to the command line).
437 const char kEnableNaCl[] = "enable-nacl"; 434 const char kEnableNaCl[] = "enable-nacl";
438 435
439 // Enables the use of native notifications instead of using the Chrome based 436 // Enables the use of native notifications instead of using the Chrome based
440 // ones. 437 // ones.
441 const char kEnableNativeNotifications[] = "enable-native-notifications"; 438 const char kEnableNativeNotifications[] = "enable-native-notifications";
(...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after
1342 return SettingsWindowEnabled() && 1339 return SettingsWindowEnabled() &&
1343 !base::CommandLine::ForCurrentProcess()->HasSwitch( 1340 !base::CommandLine::ForCurrentProcess()->HasSwitch(
1344 ::switches::kDisableAboutInSettings); 1341 ::switches::kDisableAboutInSettings);
1345 } 1342 }
1346 1343
1347 bool MdExtensionsEnabled() { 1344 bool MdExtensionsEnabled() {
1348 return base::CommandLine::ForCurrentProcess()->HasSwitch( 1345 return base::CommandLine::ForCurrentProcess()->HasSwitch(
1349 ::switches::kEnableMaterialDesignExtensions); 1346 ::switches::kEnableMaterialDesignExtensions);
1350 } 1347 }
1351 1348
1352 bool MdHistoryEnabled() {
1353 return base::CommandLine::ForCurrentProcess()->HasSwitch(
1354 ::switches::kEnableMaterialDesignHistory);
1355 }
1356
1357 bool MdPolicyPageEnabled() { 1349 bool MdPolicyPageEnabled() {
1358 return base::CommandLine::ForCurrentProcess()->HasSwitch( 1350 return base::CommandLine::ForCurrentProcess()->HasSwitch(
1359 ::switches::kEnableMaterialDesignPolicyPage); 1351 ::switches::kEnableMaterialDesignPolicyPage);
1360 } 1352 }
1361 1353
1362 bool SettingsWindowEnabled() { 1354 bool SettingsWindowEnabled() {
1363 #if defined(OS_CHROMEOS) 1355 #if defined(OS_CHROMEOS)
1364 return !base::CommandLine::ForCurrentProcess()->HasSwitch( 1356 return !base::CommandLine::ForCurrentProcess()->HasSwitch(
1365 ::switches::kDisableSettingsWindow); 1357 ::switches::kDisableSettingsWindow);
1366 #else 1358 #else
(...skipping 22 matching lines...) Expand all
1389 1381
1390 // ----------------------------------------------------------------------------- 1382 // -----------------------------------------------------------------------------
1391 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1383 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1392 // 1384 //
1393 // You were going to just dump your switches here, weren't you? Instead, please 1385 // You were going to just dump your switches here, weren't you? Instead, please
1394 // put them in alphabetical order above, or in order inside the appropriate 1386 // put them in alphabetical order above, or in order inside the appropriate
1395 // ifdef at the bottom. The order should match the header. 1387 // ifdef at the bottom. The order should match the header.
1396 // ----------------------------------------------------------------------------- 1388 // -----------------------------------------------------------------------------
1397 1389
1398 } // namespace switches 1390 } // namespace switches
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | chrome/test/data/webui/md_history/md_history_browsertest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698