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

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 compile on win 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"
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698