OLD | NEW |
---|---|
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 #include "components/safe_browsing/common/safe_browsing_prefs.h" | |
lpz
2017/05/11 18:17:35
nit: 1 blank line after
timvolodine
2017/05/12 11:31:09
Done.
| |
5 #include "base/command_line.h" | 6 #include "base/command_line.h" |
6 #include "base/logging.h" | 7 #include "base/logging.h" |
7 #include "base/metrics/histogram_macros.h" | 8 #include "base/metrics/histogram_macros.h" |
8 #include "components/prefs/pref_service.h" | 9 #include "components/prefs/pref_service.h" |
9 #include "components/safe_browsing_db/safe_browsing_prefs.h" | |
10 | 10 |
11 namespace { | 11 namespace { |
12 | 12 |
13 // Switch value which force the ScoutGroupSelected pref to true. | 13 // Switch value which force the ScoutGroupSelected pref to true. |
14 const char kForceScoutGroupValueTrue[] = "true"; | 14 const char kForceScoutGroupValueTrue[] = "true"; |
15 // Switch value which force the ScoutGroupSelected pref to false. | 15 // Switch value which force the ScoutGroupSelected pref to false. |
16 const char kForceScoutGroupValueFalse[] = "false"; | 16 const char kForceScoutGroupValueFalse[] = "false"; |
17 | 17 |
18 // Name of the Scout Transition UMA metric. | 18 // Name of the Scout Transition UMA metric. |
19 const char kScoutTransitionMetricName[] = "SafeBrowsing.Pref.Scout.Transition"; | 19 const char kScoutTransitionMetricName[] = "SafeBrowsing.Pref.Scout.Transition"; |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
431 } | 431 } |
432 | 432 |
433 // Remember that this user saw an interstitial with the current opt-in text. | 433 // Remember that this user saw an interstitial with the current opt-in text. |
434 prefs->SetBoolean(IsScout(*prefs) | 434 prefs->SetBoolean(IsScout(*prefs) |
435 ? prefs::kSafeBrowsingSawInterstitialScoutReporting | 435 ? prefs::kSafeBrowsingSawInterstitialScoutReporting |
436 : prefs::kSafeBrowsingSawInterstitialExtendedReporting, | 436 : prefs::kSafeBrowsingSawInterstitialExtendedReporting, |
437 true); | 437 true); |
438 } | 438 } |
439 | 439 |
440 } // namespace safe_browsing | 440 } // namespace safe_browsing |
OLD | NEW |