| Index: chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc
|
| diff --git a/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc b/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc
|
| index 6c38f73646e07091b0e8c2c92daba55f25d4f944..b2a18ddde0706b08c554de4b418336d169a9184b 100644
|
| --- a/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc
|
| +++ b/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc
|
| @@ -37,6 +37,7 @@
|
| #include "chrome/test/base/ui_test_utils.h"
|
| #include "components/prefs/pref_service.h"
|
| #include "components/safe_browsing_db/database_manager.h"
|
| +#include "components/safe_browsing_db/safe_browsing_prefs.h"
|
| #include "components/safe_browsing_db/test_database_manager.h"
|
| #include "components/safe_browsing_db/util.h"
|
| #include "components/security_interstitials/core/controller_client.h"
|
| @@ -704,8 +705,7 @@ IN_PROC_BROWSER_TEST_P(SafeBrowsingBlockingPageBrowserTest,
|
| EXPECT_TRUE(ClickAndWaitForDetach("proceed-link"));
|
| AssertNoInterstitial(true); // Assert the interstitial is gone
|
|
|
| - EXPECT_TRUE(browser()->profile()->GetPrefs()->GetBoolean(
|
| - prefs::kSafeBrowsingExtendedReportingEnabled));
|
| + EXPECT_TRUE(IsExtendedReportingEnabled(*browser()->profile()->GetPrefs()));
|
| EXPECT_EQ(url,
|
| browser()->tab_strip_model()->GetActiveWebContents()->GetURL());
|
|
|
| @@ -776,8 +776,7 @@ IN_PROC_BROWSER_TEST_P(SafeBrowsingBlockingPageBrowserTest,
|
| EXPECT_TRUE(ClickAndWaitForDetach("primary-button"));
|
| AssertNoInterstitial(true); // Assert the interstitial is gone
|
|
|
| - EXPECT_TRUE(browser()->profile()->GetPrefs()->GetBoolean(
|
| - prefs::kSafeBrowsingExtendedReportingEnabled));
|
| + EXPECT_TRUE(IsExtendedReportingEnabled(*browser()->profile()->GetPrefs()));
|
| EXPECT_EQ(safe_url,
|
| browser()->tab_strip_model()->GetActiveWebContents()->GetURL());
|
|
|
| @@ -828,8 +827,7 @@ IN_PROC_BROWSER_TEST_P(
|
| EXPECT_TRUE(ClickAndWaitForDetach("proceed-link"));
|
| AssertNoInterstitial(true); // Assert the interstitial is gone
|
|
|
| - EXPECT_TRUE(browser()->profile()->GetPrefs()->GetBoolean(
|
| - prefs::kSafeBrowsingExtendedReportingEnabled));
|
| + EXPECT_TRUE(IsExtendedReportingEnabled(*browser()->profile()->GetPrefs()));
|
| EXPECT_EQ(url,
|
| browser()->tab_strip_model()->GetActiveWebContents()->GetURL());
|
|
|
| @@ -876,8 +874,8 @@ IN_PROC_BROWSER_TEST_P(SafeBrowsingBlockingPageBrowserTest, ProceedDisabled) {
|
| // TODO(mattm): Should also verify that no report is sent, but there isn't a
|
| // good way to do that in the current design.
|
| IN_PROC_BROWSER_TEST_P(SafeBrowsingBlockingPageBrowserTest, ReportingDisabled) {
|
| - browser()->profile()->GetPrefs()->SetBoolean(
|
| - prefs::kSafeBrowsingExtendedReportingEnabled, true);
|
| + browser()->profile()->GetPrefs()->SetBoolean(GetExtendedReportingPrefName(),
|
| + true);
|
|
|
| TestReportingDisabledAndDontProceed(
|
| net::URLRequestMockHTTPJob::GetMockHttpsUrl(kEmptyPage));
|
| @@ -887,8 +885,8 @@ IN_PROC_BROWSER_TEST_P(SafeBrowsingBlockingPageBrowserTest, ReportingDisabled) {
|
| // disabled by policy.
|
| IN_PROC_BROWSER_TEST_P(SafeBrowsingBlockingPageBrowserTest,
|
| ReportingDisabledByPolicy) {
|
| - browser()->profile()->GetPrefs()->SetBoolean(
|
| - prefs::kSafeBrowsingExtendedReportingEnabled, true);
|
| + browser()->profile()->GetPrefs()->SetBoolean(GetExtendedReportingPrefName(),
|
| + true);
|
| browser()->profile()->GetPrefs()->SetBoolean(
|
| prefs::kSafeBrowsingExtendedReportingOptInAllowed, false);
|
|
|
|
|