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

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

Issue 488853002: Removed --disable-print-preview switch and policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/common/pref_names.h » ('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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 // Disable pop-up blocking. 308 // Disable pop-up blocking.
309 const char kDisablePopupBlocking[] = "disable-popup-blocking"; 309 const char kDisablePopupBlocking[] = "disable-popup-blocking";
310 310
311 // Disable speculative TCP/IP preconnection. 311 // Disable speculative TCP/IP preconnection.
312 const char kDisablePreconnect[] = "disable-preconnect"; 312 const char kDisablePreconnect[] = "disable-preconnect";
313 313
314 // Disable prerendering based on local browsing history. 314 // Disable prerendering based on local browsing history.
315 const char kDisablePrerenderLocalPredictor[] = 315 const char kDisablePrerenderLocalPredictor[] =
316 "disable-prerender-local-predictor"; 316 "disable-prerender-local-predictor";
317 317
318 // Disables print preview (For testing, and for users who don't like us. :[ )
319 const char kDisablePrintPreview[] = "disable-print-preview";
320
321 // Normally when the user attempts to navigate to a page that was the result of 318 // Normally when the user attempts to navigate to a page that was the result of
322 // a post we prompt to make sure they want to. This switch may be used to 319 // a post we prompt to make sure they want to. This switch may be used to
323 // disable that check. This switch is used during automated testing. 320 // disable that check. This switch is used during automated testing.
324 const char kDisablePromptOnRepost[] = "disable-prompt-on-repost"; 321 const char kDisablePromptOnRepost[] = "disable-prompt-on-repost";
325 322
326 // Disables support for the QUIC protocol. 323 // Disables support for the QUIC protocol.
327 const char kDisableQuic[] = "disable-quic"; 324 const char kDisableQuic[] = "disable-quic";
328 325
329 // Disable use of pacing of QUIC packets. 326 // Disable use of pacing of QUIC packets.
330 // This only has an effect if QUIC protocol is enabled. 327 // This only has an effect if QUIC protocol is enabled.
331 const char kDisableQuicPacing[] = "disable-quic-pacing"; 328 const char kDisableQuicPacing[] = "disable-quic-pacing";
332 329
333 // Disable use of Chromium's port selection for the ephemeral port via bind(). 330 // Disable use of Chromium's port selection for the ephemeral port via bind().
334 // This only has an effect if QUIC protocol is enabled. 331 // This only has an effect if QUIC protocol is enabled.
335 const char kDisableQuicPortSelection[] = "disable-quic-port-selection"; 332 const char kDisableQuicPortSelection[] = "disable-quic-port-selection";
336 333
337 // Disable use of time-base loss detection for QUIC connections. 334 // Disable use of time-base loss detection for QUIC connections.
338 // This only has an effect if QUIC protocol is enabled. 335 // This only has an effect if QUIC protocol is enabled.
339 const char kDisableQuicTimeBasedLossDetection[] = 336 const char kDisableQuicTimeBasedLossDetection[] =
340 "disable-quic-time-based-loss-detection"; 337 "disable-quic-time-based-loss-detection";
341 338
342 // Prevents the save password bubble from being enabled. 339 // Prevents the save password bubble from being enabled.
343 const char kDisableSavePasswordBubble[] = "disable-save-password-bubble"; 340 const char kDisableSavePasswordBubble[] = "disable-save-password-bubble";
344 341
345 // Disables throttling prints initiated by scripts.
346 const char kDisableScriptedPrintThrottling[] =
347 "disable-scripted-print-throttling";
348
349 // Disables the "search button in omnibox" experiment. 342 // Disables the "search button in omnibox" experiment.
350 const char kDisableSearchButtonInOmnibox[] = 343 const char kDisableSearchButtonInOmnibox[] =
351 "disable-search-button-in-omnibox"; 344 "disable-search-button-in-omnibox";
352 345
353 // Disables using bubbles for session restore request. 346 // Disables using bubbles for session restore request.
354 const char kDisableSessionCrashedBubble[] = "disable-session-crashed-bubble"; 347 const char kDisableSessionCrashedBubble[] = "disable-session-crashed-bubble";
355 348
356 // Disable SPDY/3.1. This is a temporary testing flag. 349 // Disable SPDY/3.1. This is a temporary testing flag.
357 const char kDisableSpdy31[] = "disable-spdy31"; 350 const char kDisableSpdy31[] = "disable-spdy31";
358 351
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after
1023 // to the cache. Playback mode reads data exclusively from the cache. This 1016 // to the cache. Playback mode reads data exclusively from the cache. This
1024 // allows us to record a session into the cache and then replay it at will. 1017 // allows us to record a session into the cache and then replay it at will.
1025 // See also kPlaybackMode. 1018 // See also kPlaybackMode.
1026 const char kRecordMode[] = "record-mode"; 1019 const char kRecordMode[] = "record-mode";
1027 1020
1028 // Remember user proceeds through SSL interstitials for a specified amount of 1021 // Remember user proceeds through SSL interstitials for a specified amount of
1029 // time. In particular, remember these decisions through session restart. The 1022 // time. In particular, remember these decisions through session restart. The
1030 // time delta to remember certificates should be specified in seconds. 1023 // time delta to remember certificates should be specified in seconds.
1031 const char kRememberCertErrorDecisions[] = "remember-cert-error-decisions"; 1024 const char kRememberCertErrorDecisions[] = "remember-cert-error-decisions";
1032 1025
1033 // Enables print preview in the renderer. This flag is generated internally by
1034 // Chrome and does nothing when directly passed to the browser.
1035 const char kRendererPrintPreview[] = "renderer-print-preview";
1036
1037 // If set, the app list will forget it has been installed on startup. Note this 1026 // If set, the app list will forget it has been installed on startup. Note this
1038 // doesn't prevent the app list from running, it just makes Chrome think the app 1027 // doesn't prevent the app list from running, it just makes Chrome think the app
1039 // list hasn't been enabled (as in kEnableAppList) yet. 1028 // list hasn't been enabled (as in kEnableAppList) yet.
1040 const char kResetAppListInstallState[] = "reset-app-list-install-state"; 1029 const char kResetAppListInstallState[] = "reset-app-list-install-state";
1041 1030
1042 // Indicates the last session should be restored on startup. This overrides the 1031 // Indicates the last session should be restored on startup. This overrides the
1043 // preferences value and is primarily intended for testing. The value of this 1032 // preferences value and is primarily intended for testing. The value of this
1044 // switch is the number of tabs to wait until loaded before 'load completed' is 1033 // switch is the number of tabs to wait until loaded before 'load completed' is
1045 // sent to the ui_test. 1034 // sent to the ui_test.
1046 const char kRestoreLastSession[] = "restore-last-session"; 1035 const char kRestoreLastSession[] = "restore-last-session";
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
1374 1363
1375 // ----------------------------------------------------------------------------- 1364 // -----------------------------------------------------------------------------
1376 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1365 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1377 // 1366 //
1378 // You were going to just dump your switches here, weren't you? Instead, please 1367 // You were going to just dump your switches here, weren't you? Instead, please
1379 // put them in alphabetical order above, or in order inside the appropriate 1368 // put them in alphabetical order above, or in order inside the appropriate
1380 // ifdef at the bottom. The order should match the header. 1369 // ifdef at the bottom. The order should match the header.
1381 // ----------------------------------------------------------------------------- 1370 // -----------------------------------------------------------------------------
1382 1371
1383 } // namespace switches 1372 } // namespace switches
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698