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