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

Side by Side Diff: components/safe_browsing_db/safe_browsing_prefs.h

Issue 2739643003: Make Sber1/2 pref metrics into Nullable Booleans so we can track how often these prefs are unset. (Closed)
Patch Set: Split SawInterstitial pref/metric into SBER1/2 Created 3 years, 9 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/browser/profiles/profile.cc ('k') | components/safe_browsing_db/safe_browsing_prefs.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) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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 // Safe Browsing preferences and some basic utility functions for using them. 5 // Safe Browsing preferences and some basic utility functions for using them.
6 6
7 #ifndef COMPONENTS_SAFE_BROWSING_DB_SAFE_BROWSING_PREFS_H_ 7 #ifndef COMPONENTS_SAFE_BROWSING_DB_SAFE_BROWSING_PREFS_H_
8 #define COMPONENTS_SAFE_BROWSING_DB_SAFE_BROWSING_PREFS_H_ 8 #define COMPONENTS_SAFE_BROWSING_DB_SAFE_BROWSING_PREFS_H_
9 9
10 #include "base/feature_list.h" 10 #include "base/feature_list.h"
11 11
12 class PrefService; 12 class PrefService;
13 13
14 namespace prefs { 14 namespace prefs {
15 // Boolean that tell us whether Safe Browsing extended reporting is enabled. 15 // Boolean that tell us whether Safe Browsing extended reporting is enabled.
16 extern const char kSafeBrowsingExtendedReportingEnabled[]; 16 extern const char kSafeBrowsingExtendedReportingEnabled[];
17 17
18 // Boolean indicating whether Safe Browsing Scout reporting is enabled, which 18 // Boolean indicating whether Safe Browsing Scout reporting is enabled, which
19 // collects data for malware detection. 19 // collects data for malware detection.
20 extern const char kSafeBrowsingScoutReportingEnabled[]; 20 extern const char kSafeBrowsingScoutReportingEnabled[];
21 21
22 // Boolean indicating whether the Scout reporting workflow is enabled. This 22 // Boolean indicating whether the Scout reporting workflow is enabled. This
23 // affects which of SafeBrowsingExtendedReporting or SafeBrowsingScoutReporting 23 // affects which of SafeBrowsingExtendedReporting or SafeBrowsingScoutReporting
24 // is used. 24 // is used.
25 extern const char kSafeBrowsingScoutGroupSelected[]; 25 extern const char kSafeBrowsingScoutGroupSelected[];
26
27 // Boolean indicating whether the user has ever seen a security interstitial
28 // containing the legacy Extended Reporting opt-in.
29 extern const char kSafeBrowsingSawInterstitialSber1[];
Mike Lerman 2017/03/08 20:08:36 Can you make these variable names for descriptive?
lpz 2017/03/09 17:58:01 Done.
30
31 // Boolean indicating whether the user has ever seen a security interstitial
32 // containing the new Scout opt-in.
33 extern const char kSafeBrowsingSawInterstitialSber2[];
26 } 34 }
27 35
28 namespace safe_browsing { 36 namespace safe_browsing {
29 37
30 // Command-line switch for changing the scout_group_selected preference. Should 38 // Command-line switch for changing the scout_group_selected preference. Should
31 // be set to either 'true' or 'false'. Primarily for testing purposes. 39 // be set to either 'true' or 'false'. Primarily for testing purposes.
32 // TODO: this is temporary (crbug.com/662944) 40 // TODO: this is temporary (crbug.com/662944)
33 extern const char kSwitchForceScoutGroup[]; 41 extern const char kSwitchForceScoutGroup[];
34 42
35 // When this feature is enabled, the Scout opt-in text will be displayed as of 43 // When this feature is enabled, the Scout opt-in text will be displayed as of
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 bool on_show_pref_value); 142 bool on_show_pref_value);
135 143
136 // Called to indicate that a security interstitial is about to be shown to the 144 // Called to indicate that a security interstitial is about to be shown to the
137 // user. This may trigger the user to begin seeing the Scout opt-in text 145 // user. This may trigger the user to begin seeing the Scout opt-in text
138 // depending on their experiment state. 146 // depending on their experiment state.
139 void UpdatePrefsBeforeSecurityInterstitial(PrefService* prefs); 147 void UpdatePrefsBeforeSecurityInterstitial(PrefService* prefs);
140 148
141 } // namespace safe_browsing 149 } // namespace safe_browsing
142 150
143 #endif // COMPONENTS_SAFE_BROWSING_DB_SAFE_BROWSING_PREFS_H_ 151 #endif // COMPONENTS_SAFE_BROWSING_DB_SAFE_BROWSING_PREFS_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile.cc ('k') | components/safe_browsing_db/safe_browsing_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698