Index: chrome/browser/ui/webui/options/chromeos/storage_manager_handler.cc |
diff --git a/chrome/browser/ui/webui/options/chromeos/storage_manager_handler.cc b/chrome/browser/ui/webui/options/chromeos/storage_manager_handler.cc |
index dba9a9350018cf60a0529038b768107b4689dea5..a6f21af5c3d0137bf2c270698c055c7064f82aa6 100644 |
--- a/chrome/browser/ui/webui/options/chromeos/storage_manager_handler.cc |
+++ b/chrome/browser/ui/webui/options/chromeos/storage_manager_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" |
@@ -300,11 +300,11 @@ void StorageManagerHandler::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(&StorageManagerHandler::OnGetBrowsingDataSize, |
weak_ptr_factory_.GetWeakPtr(), false)); |