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

Side by Side Diff: components/safe_browsing/common/safe_browsing_prefs.cc

Issue 2869383002: Unify safe_browsing* components [1]: move safe_browsing_prefs* (Closed)
Patch Set: fix win bots Created 3 years, 7 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
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 #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
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
OLDNEW
« no previous file with comments | « components/safe_browsing/common/safe_browsing_prefs.h ('k') | components/safe_browsing/common/safe_browsing_prefs_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698