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

Unified Diff: chrome/browser/ui/webui/profile_helper_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/ui/webui/profile_helper_browsertest.cc
diff --git a/chrome/browser/ui/webui/profile_helper_browsertest.cc b/chrome/browser/ui/webui/profile_helper_browsertest.cc
index ae889fcfe9382ad85bccee2d9255a447851a6871..9f95578423d3d4a3eef07e85eb77eb08b4ad0750 100644
--- a/chrome/browser/ui/webui/profile_helper_browsertest.cc
+++ b/chrome/browser/ui/webui/profile_helper_browsertest.cc
@@ -6,9 +6,6 @@
#include "base/run_loop.h"
#include "base/scoped_observer.h"
#include "chrome/browser/browser_process.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/browsing_data_remover_test_util.h"
#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/profiles/profile_attributes_storage.h"
#include "chrome/browser/profiles/profile_manager.h"
@@ -17,7 +14,9 @@
#include "chrome/browser/ui/browser_list_observer.h"
#include "chrome/browser/ui/webui/profile_helper.h"
#include "chrome/test/base/in_process_browser_test.h"
+#include "content/public/browser/browsing_data_remover.h"
#include "content/public/browser/notification_service.h"
+#include "content/public/test/browsing_data_remover_test_util.h"
#include "content/public/test/test_utils.h"
#include "content/public/test/test_web_ui.h"
@@ -184,8 +183,8 @@ IN_PROC_BROWSER_TEST_F(ProfileHelperTest, DeleteInactiveProfile) {
Profile* additional_profile = CreateProfile();
EXPECT_EQ(2u, storage.GetNumberOfProfiles());
- BrowsingDataRemoverCompletionInhibitor inhibitor(
- BrowsingDataRemoverFactory::GetForBrowserContext(additional_profile));
+ content::BrowsingDataRemoverCompletionInhibitor inhibitor(
+ content::BrowserContext::GetBrowsingDataRemover(additional_profile));
webui::DeleteProfileAtPath(additional_profile->GetPath(), &web_ui,
ProfileMetrics::DELETE_PROFILE_SETTINGS);
inhibitor.BlockUntilNearCompletion();

Powered by Google App Engine
This is Rietveld 408576698