| Index: chrome/browser/ssl/certificate_reporting_test_utils.cc
|
| diff --git a/chrome/browser/ssl/certificate_reporting_test_utils.cc b/chrome/browser/ssl/certificate_reporting_test_utils.cc
|
| index 433694b444b54f0229254136c0437a076ca1f0e5..7d76a0b3884f3b90d5bbfe86260aa6b074b31b4b 100644
|
| --- a/chrome/browser/ssl/certificate_reporting_test_utils.cc
|
| +++ b/chrome/browser/ssl/certificate_reporting_test_utils.cc
|
| @@ -20,6 +20,7 @@
|
| #include "chrome/browser/ui/browser.h"
|
| #include "chrome/common/pref_names.h"
|
| #include "components/variations/variations_associated_data.h"
|
| +#include "net/http/certificate_report_sender.h"
|
| #include "net/url_request/url_request_context.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| #include "url/gurl.h"
|
| @@ -44,9 +45,10 @@ namespace CertificateReportingTestUtils {
|
| // network.
|
| class MockReporter : public chrome_browser_net::CertificateErrorReporter {
|
| public:
|
| - MockReporter(net::URLRequestContext* request_context,
|
| - const GURL& upload_url,
|
| - CookiesPreference cookies_preference);
|
| + MockReporter(
|
| + net::URLRequestContext* request_context,
|
| + const GURL& upload_url,
|
| + net::CertificateReportSender::CookiesPreference cookies_preference);
|
|
|
| // CertificateErrorReporter implementation
|
| void SendReport(CertificateErrorReporter::ReportType type,
|
| @@ -64,9 +66,10 @@ class MockReporter : public chrome_browser_net::CertificateErrorReporter {
|
| DISALLOW_COPY_AND_ASSIGN(MockReporter);
|
| };
|
|
|
| -MockReporter::MockReporter(net::URLRequestContext* request_context,
|
| - const GURL& upload_url,
|
| - CookiesPreference cookies_preference)
|
| +MockReporter::MockReporter(
|
| + net::URLRequestContext* request_context,
|
| + const GURL& upload_url,
|
| + net::CertificateReportSender::CookiesPreference cookies_preference)
|
| : CertificateErrorReporter(request_context,
|
| upload_url,
|
| cookies_preference) {
|
| @@ -86,8 +89,9 @@ void CertificateReportingTest::SetUpMockReporter() {
|
| // because the MockReporter doesn't actually use a
|
| // request_context. (In order to pass a real request_context, the
|
| // reporter would have to be constructed on the IO thread.)
|
| - reporter_ = new MockReporter(nullptr, GURL("http://example.test"),
|
| - MockReporter::DO_NOT_SEND_COOKIES);
|
| + reporter_ =
|
| + new MockReporter(nullptr, GURL("http://example.test"),
|
| + net::CertificateReportSender::DO_NOT_SEND_COOKIES);
|
|
|
| scoped_refptr<SafeBrowsingService> safe_browsing_service =
|
| g_browser_process->safe_browsing_service();
|
|
|