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

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

Issue 11636031: [Fixit Dec-2012] Refactor first_run, very few things should depend on whether the First Run senti... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: --first-run => --force-first-run Created 7 years, 12 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 | Annotate | Revision Log
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 682 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 693
694 // Alternative feedback server to use when submitting user feedback 694 // Alternative feedback server to use when submitting user feedback
695 const char kFeedbackServer[] = "feedback-server"; 695 const char kFeedbackServer[] = "feedback-server";
696 696
697 // The file descriptor limit is set to the value of this switch, subject to the 697 // The file descriptor limit is set to the value of this switch, subject to the
698 // OS hard limits. Useful for testing that file descriptor exhaustion is 698 // OS hard limits. Useful for testing that file descriptor exhaustion is
699 // handled gracefully. 699 // handled gracefully.
700 const char kFileDescriptorLimit[] = "file-descriptor-limit"; 700 const char kFileDescriptorLimit[] = "file-descriptor-limit";
701 701
702 // Displays the First Run experience when the browser is started, regardless of 702 // Displays the First Run experience when the browser is started, regardless of
703 // whether or not it's actually the first run. 703 // whether or not it's actually the first run (this overrides kNoFirstRun as far
704 const char kFirstRun[] = "first-run"; 704 // as first run tasks are concerned).
705 705 const char kForceFirstRun[] = "force-first-run";
706 // Force a profile auto-import that would occur on a first run.
707 const char kFirstRunForceImport[] = "first-run-force-import";
708 706
709 // Enables using GAIA information to populate profile name and icon. 707 // Enables using GAIA information to populate profile name and icon.
710 const char kGaiaProfileInfo[] = "gaia-profile-info"; 708 const char kGaiaProfileInfo[] = "gaia-profile-info";
711 709
712 // Specifies an alternate URL to use for retrieving the search domain for 710 // Specifies an alternate URL to use for retrieving the search domain for
713 // Google. Useful for testing. 711 // Google. Useful for testing.
714 const char kGoogleSearchDomainCheckURL[] = "google-search-domain-check-url"; 712 const char kGoogleSearchDomainCheckURL[] = "google-search-domain-check-url";
715 713
716 // Specifies a custom name for the GSSAPI library to load. 714 // Specifies a custom name for the GSSAPI library to load.
717 const char kGSSAPILibraryName[] = "gssapi-library-name"; 715 const char kGSSAPILibraryName[] = "gssapi-library-name";
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
877 875
878 // Don't record/playback events when using record & playback. 876 // Don't record/playback events when using record & playback.
879 const char kNoEvents[] = "no-events"; 877 const char kNoEvents[] = "no-events";
880 878
881 // Disables all experiments set on about:flags. Does not disable about:flags 879 // Disables all experiments set on about:flags. Does not disable about:flags
882 // itself. Useful if an experiment makes chrome crash at startup: One can start 880 // itself. Useful if an experiment makes chrome crash at startup: One can start
883 // chrome with --no-experiments, disable the problematic lab at about:flags and 881 // chrome with --no-experiments, disable the problematic lab at about:flags and
884 // then restart chrome without this switch again. 882 // then restart chrome without this switch again.
885 const char kNoExperiments[] = "no-experiments"; 883 const char kNoExperiments[] = "no-experiments";
886 884
887 // Whether or not it's actually the first run. Overrides kFirstRun in case 885 // Whether or not it's actually the first run. Overridden by kForceFirstRun.
888 // you're for some reason tempted to pass them both.
889 const char kNoFirstRun[] = "no-first-run"; 886 const char kNoFirstRun[] = "no-first-run";
890 887
891 // Support a separate switch that enables the v8 playback extension. 888 // Support a separate switch that enables the v8 playback extension.
892 // The extension causes javascript calls to Date.now() and Math.random() 889 // The extension causes javascript calls to Date.now() and Math.random()
893 // to return consistent values, such that subsequent loads of the same 890 // to return consistent values, such that subsequent loads of the same
894 // page will result in consistent js-generated data and XHR requests. 891 // page will result in consistent js-generated data and XHR requests.
895 // Pages may still be able to generate inconsistent data from plugins. 892 // Pages may still be able to generate inconsistent data from plugins.
896 const char kNoJsRandomness[] = "no-js-randomness"; 893 const char kNoJsRandomness[] = "no-js-randomness";
897 894
898 // Starts the browser outside of managed mode. 895 // Starts the browser outside of managed mode.
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after
1618 1615
1619 // ----------------------------------------------------------------------------- 1616 // -----------------------------------------------------------------------------
1620 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1617 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1621 // 1618 //
1622 // You were going to just dump your switches here, weren't you? Instead, please 1619 // You were going to just dump your switches here, weren't you? Instead, please
1623 // put them in alphabetical order above, or in order inside the appropriate 1620 // put them in alphabetical order above, or in order inside the appropriate
1624 // ifdef at the bottom. The order should match the header. 1621 // ifdef at the bottom. The order should match the header.
1625 // ----------------------------------------------------------------------------- 1622 // -----------------------------------------------------------------------------
1626 1623
1627 } // namespace switches 1624 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698