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

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

Issue 369703002: Remember user decisions on invalid certificates behind a flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More fixes from sleevi plus a rebase on ToT Created 6 years, 5 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 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after
1045 1045
1046 // Specifies the version of QUIC to use. 1046 // Specifies the version of QUIC to use.
1047 const char kQuicVersion[] = "quic-version"; 1047 const char kQuicVersion[] = "quic-version";
1048 1048
1049 // Chrome supports a playback and record mode. Record mode saves *everything* 1049 // Chrome supports a playback and record mode. Record mode saves *everything*
1050 // to the cache. Playback mode reads data exclusively from the cache. This 1050 // to the cache. Playback mode reads data exclusively from the cache. This
1051 // allows us to record a session into the cache and then replay it at will. 1051 // allows us to record a session into the cache and then replay it at will.
1052 // See also kPlaybackMode. 1052 // See also kPlaybackMode.
1053 const char kRecordMode[] = "record-mode"; 1053 const char kRecordMode[] = "record-mode";
1054 1054
1055 // Remember user proceeds through SSL interstitials for a specified amount of
1056 // time. In particular, remember these decisions through session restart. The
1057 // "Disable" varient implies the "old style" of forgetting decisions on session
1058 // restart. The "None" varient implies a memory of 0 seconds thus proceeds are
1059 // never remembered. There are separate switches for each of these (rather than
1060 // a single switch with a value) to be better compatible with Finch experiment
1061 // forced groups.
1062 const char kRememberCertErrorDecisionsDisable[] =
1063 "disable-remember-cert-error-decisions";
1064 const char kRememberCertErrorDecisionsNone[] =
1065 "enable-remember-cert-error-decisions-none";
1066 const char kRememberCertErrorDecisionsOneDay[] =
1067 "enable-remember-cert-error-decisions-one-day";
1068 const char kRememberCertErrorDecisionsThreeDays[] =
1069 "enable-remember-cert-error-decisions-three-days";
1070 const char kRememberCertErrorDecisionsOneWeek[] =
1071 "enable-remember-cert-error-decisions-one-week";
1072 const char kRememberCertErrorDecisionsOneMonth[] =
1073 "enable-remember-cert-error-decisions-one-month";
1074
1055 // Enables print preview in the renderer. This flag is generated internally by 1075 // Enables print preview in the renderer. This flag is generated internally by
1056 // Chrome and does nothing when directly passed to the browser. 1076 // Chrome and does nothing when directly passed to the browser.
1057 const char kRendererPrintPreview[] = "renderer-print-preview"; 1077 const char kRendererPrintPreview[] = "renderer-print-preview";
1058 1078
1059 // If set, the app list will forget it has been installed on startup. Note this 1079 // If set, the app list will forget it has been installed on startup. Note this
1060 // doesn't prevent the app list from running, it just makes Chrome think the app 1080 // doesn't prevent the app list from running, it just makes Chrome think the app
1061 // list hasn't been enabled (as in kEnableAppList) yet. 1081 // list hasn't been enabled (as in kEnableAppList) yet.
1062 const char kResetAppListInstallState[] = "reset-app-list-install-state"; 1082 const char kResetAppListInstallState[] = "reset-app-list-install-state";
1063 1083
1064 // Indicates the last session should be restored on startup. This overrides the 1084 // Indicates the last session should be restored on startup. This overrides the
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
1407 1427
1408 // ----------------------------------------------------------------------------- 1428 // -----------------------------------------------------------------------------
1409 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1429 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1410 // 1430 //
1411 // You were going to just dump your switches here, weren't you? Instead, please 1431 // You were going to just dump your switches here, weren't you? Instead, please
1412 // put them in alphabetical order above, or in order inside the appropriate 1432 // put them in alphabetical order above, or in order inside the appropriate
1413 // ifdef at the bottom. The order should match the header. 1433 // ifdef at the bottom. The order should match the header.
1414 // ----------------------------------------------------------------------------- 1434 // -----------------------------------------------------------------------------
1415 1435
1416 } // namespace switches 1436 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698