Chromium Code Reviews| 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" | 5 #include "components/safe_browsing/common/safe_browsing_prefs.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/metrics/histogram_macros.h" | 9 #include "base/metrics/histogram_macros.h" |
| 10 #include "components/prefs/pref_registry_simple.h" | 10 #include "components/prefs/pref_registry_simple.h" |
| (...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 451 UMA_HISTOGRAM_ENUMERATION(kScoutTransitionMetricName, | 451 UMA_HISTOGRAM_ENUMERATION(kScoutTransitionMetricName, |
| 452 CAN_SHOW_SCOUT_OPT_IN_SAW_FIRST_INTERSTITIAL, | 452 CAN_SHOW_SCOUT_OPT_IN_SAW_FIRST_INTERSTITIAL, |
| 453 MAX_REASONS); | 453 MAX_REASONS); |
| 454 } | 454 } |
| 455 | 455 |
| 456 // Remember that this user saw an interstitial with the current opt-in text. | 456 // Remember that this user saw an interstitial with the current opt-in text. |
| 457 prefs->SetBoolean(IsScout(*prefs) | 457 prefs->SetBoolean(IsScout(*prefs) |
| 458 ? prefs::kSafeBrowsingSawInterstitialScoutReporting | 458 ? prefs::kSafeBrowsingSawInterstitialScoutReporting |
| 459 : prefs::kSafeBrowsingSawInterstitialExtendedReporting, | 459 : prefs::kSafeBrowsingSawInterstitialExtendedReporting, |
| 460 true); | 460 true); |
| 461 } | 461 } |
|
vakh (use Gerrit instead)
2017/07/07 00:23:40
This file can also be left unchanged.
hkamila
2017/07/07 01:29:48
Acknowledged.
| |
| 462 | |
| 463 } // namespace safe_browsing | 462 } // namespace safe_browsing |
| OLD | NEW |