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

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

Issue 21150006: Introduce --cancel-first-run and reduce the strength of --no-first-run. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add first_run::IsFirstRunSuppressed() Created 7 years, 4 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
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | chrome/installer/setup/setup_main.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) 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 133
134 // The value of this switch tells the app to listen for and broadcast 134 // The value of this switch tells the app to listen for and broadcast
135 // automation-related messages on IPC channel with the given ID. 135 // automation-related messages on IPC channel with the given ID.
136 const char kAutomationClientChannelID[] = "automation-channel"; 136 const char kAutomationClientChannelID[] = "automation-channel";
137 137
138 // Causes the automation provider to reinitialize its IPC channel instead of 138 // Causes the automation provider to reinitialize its IPC channel instead of
139 // shutting down when a client disconnects. 139 // shutting down when a client disconnects.
140 const char kAutomationReinitializeOnChannelError[] = 140 const char kAutomationReinitializeOnChannelError[] =
141 "automation-reinitialize-on-channel-error"; 141 "automation-reinitialize-on-channel-error";
142 142
143 // Similar to kSkipFirstRun, but also drops the First Run beacon so that first
144 // run will not occur in subsequent runs either.
145 const char kCancelFirstRun[] = "cancel-first-run";
146
143 // How often (in seconds) to check for updates. Should only be used for testing 147 // How often (in seconds) to check for updates. Should only be used for testing
144 // purposes. 148 // purposes.
145 const char kCheckForUpdateIntervalSec[] = "check-for-update-interval"; 149 const char kCheckForUpdateIntervalSec[] = "check-for-update-interval";
146 150
147 // Checks the cloud print connector policy, informing the service process if 151 // Checks the cloud print connector policy, informing the service process if
148 // the policy is set to disallow the connector, then quits. 152 // the policy is set to disallow the connector, then quits.
149 const char kCheckCloudPrintConnectorPolicy[] = 153 const char kCheckCloudPrintConnectorPolicy[] =
150 "check-cloud-print-connector-policy"; 154 "check-cloud-print-connector-policy";
151 155
152 // Run Chrome in Chrome Frame mode. This means that Chrome expects to be run 156 // Run Chrome in Chrome Frame mode. This means that Chrome expects to be run
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after
782 // The file descriptor limit is set to the value of this switch, subject to the 786 // The file descriptor limit is set to the value of this switch, subject to the
783 // OS hard limits. Useful for testing that file descriptor exhaustion is 787 // OS hard limits. Useful for testing that file descriptor exhaustion is
784 // handled gracefully. 788 // handled gracefully.
785 const char kFileDescriptorLimit[] = "file-descriptor-limit"; 789 const char kFileDescriptorLimit[] = "file-descriptor-limit";
786 790
787 // Forces application mode. This hides certain system UI elements and forces 791 // Forces application mode. This hides certain system UI elements and forces
788 // the app to be installed if it hasn't been already. 792 // the app to be installed if it hasn't been already.
789 const char kForceAppMode[] = "force-app-mode"; 793 const char kForceAppMode[] = "force-app-mode";
790 794
791 // Displays the First Run experience when the browser is started, regardless of 795 // Displays the First Run experience when the browser is started, regardless of
792 // whether or not it's actually the First Run (this overrides kNoFirstRun). 796 // whether or not it's actually the First Run (this overrides kSkipFirstRun and
797 // kCancelFirstRun).
793 const char kForceFirstRun[] = "force-first-run"; 798 const char kForceFirstRun[] = "force-first-run";
794 799
795 // Tries to load cloud policy for every signed in user, regardless of whether 800 // Tries to load cloud policy for every signed in user, regardless of whether
796 // they are a dasher user or not. Used to allow any GAIA account to be used for 801 // they are a dasher user or not. Used to allow any GAIA account to be used for
797 // testing the cloud policy framework. 802 // testing the cloud policy framework.
798 const char kForceLoadCloudPolicy[] = "force-load-cloud-policy"; 803 const char kForceLoadCloudPolicy[] = "force-load-cloud-policy";
799 804
800 // Enables using GAIA information to populate profile name and icon. 805 // Enables using GAIA information to populate profile name and icon.
801 const char kGaiaProfileInfo[] = "gaia-profile-info"; 806 const char kGaiaProfileInfo[] = "gaia-profile-info";
802 807
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
954 959
955 // Don't record/playback events when using record & playback. 960 // Don't record/playback events when using record & playback.
956 const char kNoEvents[] = "no-events"; 961 const char kNoEvents[] = "no-events";
957 962
958 // Disables all experiments set on about:flags. Does not disable about:flags 963 // Disables all experiments set on about:flags. Does not disable about:flags
959 // itself. Useful if an experiment makes chrome crash at startup: One can start 964 // itself. Useful if an experiment makes chrome crash at startup: One can start
960 // chrome with --no-experiments, disable the problematic lab at about:flags and 965 // chrome with --no-experiments, disable the problematic lab at about:flags and
961 // then restart chrome without this switch again. 966 // then restart chrome without this switch again.
962 const char kNoExperiments[] = "no-experiments"; 967 const char kNoExperiments[] = "no-experiments";
963 968
964 // Skip First Run tasks, whether or not it's actually the First Run. Overridden
965 // by kForceFirstRun.
966 // Also drops the First Run beacon so that First Run will not occur in
967 // subsequent runs as well.
968 const char kNoFirstRun[] = "no-first-run";
cpu_(ooo_6.6-7.5) 2013/07/30 21:41:36 please check/search if documentation in chromium.o
gab 2013/07/31 00:00:51 Actually this makes me realize that a bunch of ran
gab 2013/08/01 15:14:49 ping, what do you guys think of ^^ ?
969
970 // Support a separate switch that enables the v8 playback extension. 969 // Support a separate switch that enables the v8 playback extension.
971 // The extension causes javascript calls to Date.now() and Math.random() 970 // The extension causes javascript calls to Date.now() and Math.random()
972 // to return consistent values, such that subsequent loads of the same 971 // to return consistent values, such that subsequent loads of the same
973 // page will result in consistent js-generated data and XHR requests. 972 // page will result in consistent js-generated data and XHR requests.
974 // Pages may still be able to generate inconsistent data from plugins. 973 // Pages may still be able to generate inconsistent data from plugins.
975 const char kNoJsRandomness[] = "no-js-randomness"; 974 const char kNoJsRandomness[] = "no-js-randomness";
976 975
977 // Disables the timeout during registration of a new managed-user profile; 976 // Disables the timeout during registration of a new managed-user profile;
978 // useful for debugging. 977 // useful for debugging.
979 const char kNoManagedUserRegistrationTimeout[] = 978 const char kNoManagedUserRegistrationTimeout[] =
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
1254 1253
1255 // Simulates an update being available. 1254 // Simulates an update being available.
1256 const char kSimulateUpgrade[] = "simulate-upgrade"; 1255 const char kSimulateUpgrade[] = "simulate-upgrade";
1257 1256
1258 // Simulates a critical update being available. 1257 // Simulates a critical update being available.
1259 const char kSimulateCriticalUpdate[] = "simulate-critical-update"; 1258 const char kSimulateCriticalUpdate[] = "simulate-critical-update";
1260 1259
1261 // Simulates that current version is outdated. 1260 // Simulates that current version is outdated.
1262 const char kSimulateOutdated[] = "simulate-outdated"; 1261 const char kSimulateOutdated[] = "simulate-outdated";
1263 1262
1263 // Skip First Run tasks, whether or not it's actually the First Run. Overridden
1264 // by kForceFirstRun. This doesn't prevent first run from occuring the next time
1265 // chrome is launched without this flag.
1266 const char kSkipFirstRun[] = "skip-first-run";
1267
1264 // Replaces the buffered data source for <audio> and <video> with a simplified 1268 // Replaces the buffered data source for <audio> and <video> with a simplified
1265 // resource loader that downloads the entire resource into memory. 1269 // resource loader that downloads the entire resource into memory.
1266 1270
1267 // Origin for which SpdyProxy authentication is supported. 1271 // Origin for which SpdyProxy authentication is supported.
1268 const char kSpdyProxyAuthOrigin[] = "spdy-proxy-auth-origin"; 1272 const char kSpdyProxyAuthOrigin[] = "spdy-proxy-auth-origin";
1269 1273
1270 // Speculative resource prefetching. 1274 // Speculative resource prefetching.
1271 const char kSpeculativeResourcePrefetching[] = 1275 const char kSpeculativeResourcePrefetching[] =
1272 "speculative-resource-prefetching"; 1276 "speculative-resource-prefetching";
1273 1277
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
1578 1582
1579 // ----------------------------------------------------------------------------- 1583 // -----------------------------------------------------------------------------
1580 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1584 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1581 // 1585 //
1582 // You were going to just dump your switches here, weren't you? Instead, please 1586 // You were going to just dump your switches here, weren't you? Instead, please
1583 // put them in alphabetical order above, or in order inside the appropriate 1587 // put them in alphabetical order above, or in order inside the appropriate
1584 // ifdef at the bottom. The order should match the header. 1588 // ifdef at the bottom. The order should match the header.
1585 // ----------------------------------------------------------------------------- 1589 // -----------------------------------------------------------------------------
1586 1590
1587 } // namespace switches 1591 } // namespace switches
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | chrome/installer/setup/setup_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698