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

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

Issue 2964693003: Added experiments section and exported the list of SafeBrowsing features in WebUI (Closed)
Patch Set: Changed the location of features.cc/.h Created 3 years, 5 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" 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698