Index: chrome/browser/ui/webui/options/clear_browser_data_handler.cc |
diff --git a/chrome/browser/ui/webui/options/clear_browser_data_handler.cc b/chrome/browser/ui/webui/options/clear_browser_data_handler.cc |
index 527531ccb060338e0ac4dbaae42f8c1460d0d66a..0c3e07d5b2ec357d3ab2431b21423bbc1715c05a 100644 |
--- a/chrome/browser/ui/webui/options/clear_browser_data_handler.cc |
+++ b/chrome/browser/ui/webui/options/clear_browser_data_handler.cc |
@@ -24,8 +24,6 @@ |
#include "chrome/browser/browsing_data/browsing_data_counter_factory.h" |
#include "chrome/browser/browsing_data/browsing_data_counter_utils.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/history/web_history_service_factory.h" |
#include "chrome/browser/prefs/incognito_mode_prefs.h" |
@@ -41,6 +39,7 @@ |
#include "components/browsing_data/core/pref_names.h" |
#include "components/google/core/browser/google_util.h" |
#include "components/prefs/pref_service.h" |
+#include "content/public/browser/browsing_data_remover.h" |
#include "content/public/browser/notification_details.h" |
#include "content/public/browser/web_ui.h" |
#include "ui/base/accelerators/accelerator.h" |
@@ -260,38 +259,38 @@ void ClearBrowserDataHandler::HandleClearBrowserData( |
} |
if (prefs->GetBoolean(browsing_data::prefs::kDeleteDownloadHistory) && |
*allow_deleting_browser_history_) { |
- remove_mask |= BrowsingDataRemover::DATA_TYPE_DOWNLOADS; |
+ remove_mask |= content::BrowsingDataRemover::DATA_TYPE_DOWNLOADS; |
} |
if (prefs->GetBoolean(browsing_data::prefs::kDeleteCache)) |
- remove_mask |= BrowsingDataRemover::DATA_TYPE_CACHE; |
+ remove_mask |= content::BrowsingDataRemover::DATA_TYPE_CACHE; |
if (prefs->GetBoolean(browsing_data::prefs::kDeleteCookies)) { |
remove_mask |= site_data_mask; |
- origin_mask |= BrowsingDataRemover::ORIGIN_TYPE_UNPROTECTED_WEB; |
+ origin_mask |= content::BrowsingDataRemover::ORIGIN_TYPE_UNPROTECTED_WEB; |
} |
if (prefs->GetBoolean(browsing_data::prefs::kDeletePasswords)) |
remove_mask |= ChromeBrowsingDataRemoverDelegate::DATA_TYPE_PASSWORDS; |
if (prefs->GetBoolean(browsing_data::prefs::kDeleteFormData)) |
remove_mask |= ChromeBrowsingDataRemoverDelegate::DATA_TYPE_FORM_DATA; |
if (prefs->GetBoolean(browsing_data::prefs::kDeleteMediaLicenses)) |
- remove_mask |= BrowsingDataRemover::DATA_TYPE_MEDIA_LICENSES; |
+ remove_mask |= content::BrowsingDataRemover::DATA_TYPE_MEDIA_LICENSES; |
if (prefs->GetBoolean(browsing_data::prefs::kDeleteHostedAppsData)) { |
remove_mask |= site_data_mask; |
- origin_mask |= BrowsingDataRemover::ORIGIN_TYPE_PROTECTED_WEB; |
+ origin_mask |= content::BrowsingDataRemover::ORIGIN_TYPE_PROTECTED_WEB; |
} |
// Record the deletion of cookies and cache. |
- BrowsingDataRemover::CookieOrCacheDeletionChoice choice = |
- BrowsingDataRemover::NEITHER_COOKIES_NOR_CACHE; |
+ content::BrowsingDataRemover::CookieOrCacheDeletionChoice choice = |
+ content::BrowsingDataRemover::NEITHER_COOKIES_NOR_CACHE; |
if (prefs->GetBoolean(browsing_data::prefs::kDeleteCookies)) { |
choice = prefs->GetBoolean(browsing_data::prefs::kDeleteCache) |
- ? BrowsingDataRemover::BOTH_COOKIES_AND_CACHE |
- : BrowsingDataRemover::ONLY_COOKIES; |
+ ? content::BrowsingDataRemover::BOTH_COOKIES_AND_CACHE |
+ : content::BrowsingDataRemover::ONLY_COOKIES; |
} else if (prefs->GetBoolean(browsing_data::prefs::kDeleteCache)) { |
- choice = BrowsingDataRemover::ONLY_CACHE; |
+ choice = content::BrowsingDataRemover::ONLY_CACHE; |
} |
UMA_HISTOGRAM_ENUMERATION( |
- "History.ClearBrowsingData.UserDeletedCookieOrCacheFromDialog", |
- choice, BrowsingDataRemover::MAX_CHOICE_VALUE); |
+ "History.ClearBrowsingData.UserDeletedCookieOrCacheFromDialog", choice, |
+ content::BrowsingDataRemover::MAX_CHOICE_VALUE); |
// Record the circumstances under which passwords are deleted. |
if (prefs->GetBoolean(browsing_data::prefs::kDeletePasswords)) { |
@@ -314,7 +313,7 @@ void ClearBrowserDataHandler::HandleClearBrowserData( |
checked_other_types); |
} |
- remover_ = BrowsingDataRemoverFactory::GetForBrowserContext(profile); |
+ remover_ = content::BrowserContext::GetBrowsingDataRemover(profile); |
remover_->AddObserver(this); |
int period_selected = |
prefs->GetInteger(browsing_data::prefs::kDeleteTimePeriod); |