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

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

Issue 2824008: Command line flag cleanup. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: copyright years Created 10 years, 6 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/test/mini_installer_test/run_all_unittests.cc » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 // Extra command line options for launching the GPU process (normally used 441 // Extra command line options for launching the GPU process (normally used
442 // for debugging). Use like renderer-cmd-prefix. 442 // for debugging). Use like renderer-cmd-prefix.
443 const char kGpuLauncher[] = "gpu-launcher"; 443 const char kGpuLauncher[] = "gpu-launcher";
444 444
445 // Makes this process a GPU sub-process. 445 // Makes this process a GPU sub-process.
446 const char kGpuProcess[] = "gpu-process"; 446 const char kGpuProcess[] = "gpu-process";
447 447
448 // Causes the GPU process to display a dialog on launch. 448 // Causes the GPU process to display a dialog on launch.
449 const char kGpuStartupDialog[] = "gpu-startup-dialog"; 449 const char kGpuStartupDialog[] = "gpu-startup-dialog";
450 450
451 // These flags show the man page on Linux. They are equivalent to each
452 // other.
453 const char kHelp[] = "help";
454 const char kHelpShort[] = "h";
455
451 // Make Windows happy by allowing it to show "Enable access to this program" 456 // Make Windows happy by allowing it to show "Enable access to this program"
452 // checkbox in Add/Remove Programs->Set Program Access and Defaults. This 457 // checkbox in Add/Remove Programs->Set Program Access and Defaults. This
453 // only shows an error box because the only way to hide Chrome is by 458 // only shows an error box because the only way to hide Chrome is by
454 // uninstalling it. 459 // uninstalling it.
455 const char kHideIcons[] = "hide-icons"; 460 const char kHideIcons[] = "hide-icons";
456 461
457 // The value of this switch specifies which page will be displayed 462 // The value of this switch specifies which page will be displayed
458 // in newly-opened tabs. We need this for testing purposes so 463 // in newly-opened tabs. We need this for testing purposes so
459 // that the UI tests don't depend on what comes up for http://google.com. 464 // that the UI tests don't depend on what comes up for http://google.com.
460 const char kHomePage[] = "homepage"; 465 const char kHomePage[] = "homepage";
(...skipping 28 matching lines...) Expand all
489 494
490 // Runs plugins inside the renderer process 495 // Runs plugins inside the renderer process
491 const char kInProcessPlugins[] = "in-process-plugins"; 496 const char kInProcessPlugins[] = "in-process-plugins";
492 497
493 // Runs WebGL inside the renderer process. 498 // Runs WebGL inside the renderer process.
494 const char kInProcessWebGL[] = "in-process-webgl"; 499 const char kInProcessWebGL[] = "in-process-webgl";
495 500
496 // Causes the browser to launch directly in incognito mode. 501 // Causes the browser to launch directly in incognito mode.
497 const char kIncognito[] = "incognito"; 502 const char kIncognito[] = "incognito";
498 503
504 // Back up the profile.
505 const char kInstallerTestBackup[] = "backup";
506
507 // Control the build under test.
508 const char kInstallerTestBuild[] = "build";
509
510 // Uninstall before running the tests.
511 const char kInstallerTestClean[] = "clean";
512
513 // Force the installer tests to run, regardless of the current platform.
514 const char kInstallerTestForce[] = "force";
515
499 // Runs the Native Client inside the renderer process. 516 // Runs the Native Client inside the renderer process.
500 const char kInternalNaCl[] = "internal-nacl"; 517 const char kInternalNaCl[] = "internal-nacl";
501 518
502 // Runs a trusted Pepper plugin inside the renderer process. 519 // Runs a trusted Pepper plugin inside the renderer process.
503 const char kInternalPepper[] = "internal-pepper"; 520 const char kInternalPepper[] = "internal-pepper";
504 521
505 // Specifies the flags passed to JS engine 522 // Specifies the flags passed to JS engine
506 const char kJavaScriptFlags[] = "js-flags"; 523 const char kJavaScriptFlags[] = "js-flags";
507 524
508 // Load an extension from the specified directory. 525 // Load an extension from the specified directory.
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 // TODO(scherkus): remove --simple-data-source when our media resource loading 774 // TODO(scherkus): remove --simple-data-source when our media resource loading
758 // is cleaned up and playback testing completed. 775 // is cleaned up and playback testing completed.
759 const char kSimpleDataSource[] = "simple-data-source"; 776 const char kSimpleDataSource[] = "simple-data-source";
760 777
761 // Runs the renderer and plugins in the same process as the browser 778 // Runs the renderer and plugins in the same process as the browser
762 const char kSingleProcess[] = "single-process"; 779 const char kSingleProcess[] = "single-process";
763 780
764 // Start the browser maximized, regardless of any previous settings. 781 // Start the browser maximized, regardless of any previous settings.
765 const char kStartMaximized[] = "start-maximized"; 782 const char kStartMaximized[] = "start-maximized";
766 783
767 // Override the default server used for profile sync. 784 // Control Sync XMPP client settings.
768 const char kSyncServiceURL[] = "sync-url"; 785 const char kSyncAllowPlain[] = "allow-plain";
769 786
770 // Override the default notification method for sync. 787 // Control Sync XMPP client settings.
771 const char kSyncNotificationMethod[] = "sync-notification-method"; 788 const char kSyncDisableTls[] = "disable-tls";
789
790 // Email used for sync.
791 const char kSyncEmail[] = "email";
772 792
773 // Use the SyncerThread implementation that matches up with the old pthread 793 // Use the SyncerThread implementation that matches up with the old pthread
774 // impl semantics, but using Chrome synchronization primitives. The only 794 // impl semantics, but using Chrome synchronization primitives. The only
775 // difference between this and the default is that we now have no timeout on 795 // difference between this and the default is that we now have no timeout on
776 // Stop(). Should only use if you experience problems with the default. 796 // Stop(). Should only use if you experience problems with the default.
777 const char kSyncerThreadTimedStop[] = "syncer-thread-timed-stop"; 797 const char kSyncerThreadTimedStop[] = "syncer-thread-timed-stop";
778 798
799 // Override the default notification method for sync.
800 const char kSyncNotificationMethod[] = "sync-notification-method";
801
802 // Password used for sync.
803 const char kSyncPassword[] = "password";
804
805 // Port used for sync.
806 const char kSyncPort[] = "port";
807
808 // Server used for sync.
809 const char kSyncServer[] = "server";
810
811 // Override the default server used for profile sync.
812 const char kSyncServiceURL[] = "sync-url";
813
814 // Control Sync XMPP client settings.
815 const char kSyncUseSslTcp[] = "use-ssl-tcp";
816
817 // Control Sync XMPP client settings.
818 const char kSyncUseCacheInvalidation[] = "use-cache-invalidation";
819
779 // Pass the name of the current running automated test to Chrome. 820 // Pass the name of the current running automated test to Chrome.
780 const char kTestName[] = "test-name"; 821 const char kTestName[] = "test-name";
781 822
782 // Runs the security test for the sandbox. 823 // Runs the security test for the sandbox.
783 const char kTestSandbox[] = "test-sandbox"; 824 const char kTestSandbox[] = "test-sandbox";
784 825
785 // Pass the type of the current test harness ("browser" or "ui") 826 // Pass the type of the current test harness ("browser" or "ui")
786 const char kTestType[] = "test-type"; 827 const char kTestType[] = "test-type";
787 828
788 // The value of this switch tells the app to listen for and broadcast 829 // The value of this switch tells the app to listen for and broadcast
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
903 944
904 // Specifies the profile to use once a chromeos user is logged in. 945 // Specifies the profile to use once a chromeos user is logged in.
905 const char kLoginProfile[] = "login-profile"; 946 const char kLoginProfile[] = "login-profile";
906 947
907 // Specifies the user which is already logged in. 948 // Specifies the user which is already logged in.
908 const char kLoginUser[] = "login-user"; 949 const char kLoginUser[] = "login-user";
909 950
910 // Use the frame layout used in chromeos. 951 // Use the frame layout used in chromeos.
911 const char kChromeosFrame[] = "chromeos-frame"; 952 const char kChromeosFrame[] = "chromeos-frame";
912 953
954 // Set logging output to the given file.
955 const char kChromeosLogToFile[] = "logtofile";
956
913 // Specify startup customization manifest. 957 // Specify startup customization manifest.
914 // TODO(denisromanov): delete this when not needed for testing. 958 // TODO(denisromanov): delete this when not needed for testing.
915 const char kStartupManifest[] = "startup-manifest"; 959 const char kStartupManifest[] = "startup-manifest";
916 960
917 // Specify services customization manifest. 961 // Specify services customization manifest.
918 // TODO(denisromanov): delete this when not needed for testing. 962 // TODO(denisromanov): delete this when not needed for testing.
919 const char kServicesManifest[] = "services-manifest"; 963 const char kServicesManifest[] = "services-manifest";
920 964
921 #endif 965 #endif
922 966
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
1004 1048
1005 // ----------------------------------------------------------------------------- 1049 // -----------------------------------------------------------------------------
1006 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1050 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1007 // 1051 //
1008 // You were going to just dump your switches here, weren't you? Instead, 1052 // You were going to just dump your switches here, weren't you? Instead,
1009 // please put them in alphabetical order above, or in order inside the 1053 // please put them in alphabetical order above, or in order inside the
1010 // appropriate ifdef at the bottom. The order should match the header. 1054 // appropriate ifdef at the bottom. The order should match the header.
1011 // ----------------------------------------------------------------------------- 1055 // -----------------------------------------------------------------------------
1012 1056
1013 } // namespace switches 1057 } // namespace switches
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | chrome/test/mini_installer_test/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698