Index: chrome/browser/ui/webui/net_internals/net_internals_ui.cc |
diff --git a/chrome/browser/ui/webui/net_internals/net_internals_ui.cc b/chrome/browser/ui/webui/net_internals/net_internals_ui.cc |
index 3a72ef906f8f855ce8b040c1544c65cec81dc8a5..3d99edddc72f7fa3ed619f80d33b4ae5ec8d522f 100644 |
--- a/chrome/browser/ui/webui/net_internals/net_internals_ui.cc |
+++ b/chrome/browser/ui/webui/net_internals/net_internals_ui.cc |
@@ -33,8 +33,6 @@ |
#include "build/build_config.h" |
#include "chrome/browser/browser_process.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/chrome_notification_types.h" |
#include "chrome/browser/download/download_prefs.h" |
@@ -52,6 +50,7 @@ |
#include "components/url_formatter/url_fixer.h" |
#include "components/version_info/version_info.h" |
#include "content/public/browser/browser_thread.h" |
+#include "content/public/browser/browsing_data_remover.h" |
#include "content/public/browser/notification_details.h" |
#include "content/public/browser/resource_dispatcher_host.h" |
#include "content/public/browser/storage_partition.h" |
@@ -502,12 +501,11 @@ void NetInternalsMessageHandler::OnRendererReady(const base::ListValue* list) { |
void NetInternalsMessageHandler::OnClearBrowserCache( |
const base::ListValue* list) { |
- BrowsingDataRemover* remover = |
- BrowsingDataRemoverFactory::GetForBrowserContext( |
- Profile::FromWebUI(web_ui())); |
+ content::BrowsingDataRemover* remover = |
+ Profile::GetBrowsingDataRemover(Profile::FromWebUI(web_ui())); |
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); |
// BrowsingDataRemover deletes itself. |
} |