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

Unified Diff: chrome/browser/net/errorpage_browsertest.cc

Issue 2827523003: Move BrowsingDataRemover to content/ (Closed)
Patch Set: Addressed some comments. Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/net/errorpage_browsertest.cc
diff --git a/chrome/browser/net/errorpage_browsertest.cc b/chrome/browser/net/errorpage_browsertest.cc
index c05198ab548f9adaa7caaef343759ff7b78d01b3..3928b7f5b528825ef387ae74210b1f3e75ea487f 100644
--- a/chrome/browser/net/errorpage_browsertest.cc
+++ b/chrome/browser/net/errorpage_browsertest.cc
@@ -21,8 +21,7 @@
#include "base/values.h"
#include "build/build_config.h"
#include "chrome/browser/browsing_data/browsing_data_helper.h"
-#include "chrome/browser/browsing_data/browsing_data_remover.h"
-#include "chrome/browser/browsing_data/browsing_data_remover_factory.h"
+
#include "chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.h"
#include "chrome/browser/net/net_error_diagnostics_dialog.h"
#include "chrome/browser/net/url_request_mock_util.h"
@@ -45,6 +44,7 @@
#include "components/prefs/pref_service.h"
#include "components/strings/grit/components_strings.h"
#include "content/public/browser/browser_thread.h"
+#include "content/public/browser/browsing_data_remover.h"
#include "content/public/browser/navigation_handle.h"
#include "content/public/browser/notification_service.h"
#include "content/public/browser/notification_types.h"
@@ -1007,11 +1007,11 @@ IN_PROC_BROWSER_TEST_F(ErrorPageTest, StaleCacheStatus) {
// Clear the cache and reload the same URL; confirm the error page is told
// that there is no cached copy.
- BrowsingDataRemover* remover =
- BrowsingDataRemoverFactory::GetForBrowserContext(browser()->profile());
+ content::BrowsingDataRemover* remover =
+ content::BrowserContext::GetBrowsingDataRemover(browser()->profile());
remover->Remove(base::Time(), base::Time::Max(),
- BrowsingDataRemover::DATA_TYPE_CACHE,
- BrowsingDataRemover::ORIGIN_TYPE_UNPROTECTED_WEB);
+ content::BrowsingDataRemover::DATA_TYPE_CACHE,
+ content::BrowsingDataRemover::ORIGIN_TYPE_UNPROTECTED_WEB);
ui_test_utils::NavigateToURL(browser(), test_url);
EXPECT_TRUE(ProbeStaleCopyValue(false));
EXPECT_FALSE(IsDisplayingText(browser(), GetShowSavedButtonLabel()));
@@ -1280,11 +1280,11 @@ IN_PROC_BROWSER_TEST_F(ErrorPageNavigationCorrectionsFailTest,
// Clear the cache and reload the same URL; confirm the error page is told
// that there is no cached copy.
- BrowsingDataRemover* remover =
- BrowsingDataRemoverFactory::GetForBrowserContext(browser()->profile());
+ content::BrowsingDataRemover* remover =
+ content::BrowserContext::GetBrowsingDataRemover(browser()->profile());
remover->Remove(base::Time(), base::Time::Max(),
- BrowsingDataRemover::DATA_TYPE_CACHE,
- BrowsingDataRemover::ORIGIN_TYPE_UNPROTECTED_WEB);
+ content::BrowsingDataRemover::DATA_TYPE_CACHE,
+ content::BrowsingDataRemover::ORIGIN_TYPE_UNPROTECTED_WEB);
ui_test_utils::NavigateToURLBlockUntilNavigationsComplete(
browser(), test_url, 2);
EXPECT_TRUE(ProbeStaleCopyValue(false));

Powered by Google App Engine
This is Rietveld 408576698