Chromium Code Reviews| Index: chrome/browser/ssl/chrome_expect_ct_reporter.cc |
| diff --git a/chrome/browser/ssl/chrome_expect_ct_reporter.cc b/chrome/browser/ssl/chrome_expect_ct_reporter.cc |
| index 9e3bd30005336abc24a6f0a3ab5f974aa0f9036f..601800c93ec2edc2a66a1800887a7993f87ea302 100644 |
| --- a/chrome/browser/ssl/chrome_expect_ct_reporter.cc |
| +++ b/chrome/browser/ssl/chrome_expect_ct_reporter.cc |
| @@ -8,11 +8,12 @@ |
| #include "base/base64.h" |
| #include "base/command_line.h" |
| +#include "base/feature_list.h" |
| #include "base/json/json_writer.h" |
| #include "base/strings/string_number_conversions.h" |
| #include "base/strings/stringprintf.h" |
| #include "base/values.h" |
| -#include "chrome/common/chrome_switches.h" |
| +#include "chrome/common/chrome_features.h" |
| #include "net/url_request/certificate_report_sender.h" |
| namespace { |
| @@ -117,10 +118,8 @@ void ChromeExpectCTReporter::OnExpectCTFailed( |
| if (report_uri.is_empty()) |
| return; |
| - if (!base::CommandLine::ForCurrentProcess()->HasSwitch( |
| - switches::kEnableExpectCTReporting)) { |
| + if (!base::FeatureList::IsEnabled(features::kExpectCTReporting)) |
|
meacer
2016/04/05 18:08:40
This looks new, back in the days when I was young
estark
2016/04/05 18:10:39
Yeah, I think it is new, and it's soooo nice!
|
| return; |
| - } |
| // TODO(estark): De-duplicate reports so that the same report isn't |
| // sent too often in some period of time. |