Index: chrome/browser/ui/webui/settings/chromeos/device_storage_handler.cc |
diff --git a/chrome/browser/ui/webui/settings/chromeos/device_storage_handler.cc b/chrome/browser/ui/webui/settings/chromeos/device_storage_handler.cc |
index 858fab411039767bd1a1bb7e0f9fa1048780573a..b1d991a30e983c11a87cfb91860e61f3d833985c 100644 |
--- a/chrome/browser/ui/webui/settings/chromeos/device_storage_handler.cc |
+++ b/chrome/browser/ui/webui/settings/chromeos/device_storage_handler.cc |
@@ -28,7 +28,7 @@ |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/grit/generated_resources.h" |
#include "chromeos/cryptohome/homedir_methods.h" |
-#include "components/browsing_data/content/storage_partition_http_cache_data_remover.h" |
+#include "components/browsing_data/content/conditional_cache_counting_helper.h" |
#include "components/drive/chromeos/file_system_interface.h" |
#include "components/user_manager/user_manager.h" |
#include "content/public/browser/browser_context.h" |
@@ -232,11 +232,11 @@ void StorageHandler::UpdateBrowsingDataSize() { |
has_browser_site_data_size_ = false; |
Profile* const profile = Profile::FromWebUI(web_ui()); |
// Fetch the size of http cache in browsing data. |
- // StoragePartitionHttpCacheDataRemover deletes itself when it is done. |
- browsing_data::StoragePartitionHttpCacheDataRemover::CreateForRange( |
+ // ConditionalCacheCountingHelper deletes itself when it is done. |
+ browsing_data::ConditionalCacheCountingHelper::CreateForRange( |
content::BrowserContext::GetDefaultStoragePartition(profile), |
- base::Time(), |
- base::Time::Max())->Count( |
+ base::Time(), base::Time::Max()) |
+ ->CountAndDestroySelfWhenFinished( |
base::Bind(&StorageHandler::OnGetBrowsingDataSize, |
base::Unretained(this), false)); |