Commit 2e258788 authored by Ayu Ishii's avatar Ayu Ishii Committed by Commit Bot

Convert base::Bind and base::Callback in components/arc to Once/Repeating

Bug: 1054441
Change-Id: I9ef24a035cd9942a3a9196509ac550221ae53005
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2315219Reviewed-by: default avatarRyo Hashimoto <hashimoto@chromium.org>
Commit-Queue: Ayu Ishii <ayui@chromium.org>
Cr-Commit-Position: refs/heads/master@{#791941}
parent 619e0e39
......@@ -68,12 +68,12 @@ bool ArcStorageManager::GetApplicationsSize(
}
bool ArcStorageManager::DeleteApplicationsCache(
const base::Callback<void()>& callback) {
base::OnceCallback<void()> callback) {
auto* storage_manager_instance = ARC_GET_INSTANCE_FOR_METHOD(
arc_bridge_service_->storage_manager(), DeleteApplicationsCache);
if (!storage_manager_instance)
return false;
storage_manager_instance->DeleteApplicationsCache(callback);
storage_manager_instance->DeleteApplicationsCache(std::move(callback));
return true;
}
......
......@@ -42,7 +42,7 @@ class ArcStorageManager : public KeyedService {
bool GetApplicationsSize(GetApplicationsSizeCallback callback);
// Deletes all applications' cache files.
bool DeleteApplicationsCache(const base::Callback<void()>& callback);
bool DeleteApplicationsCache(base::OnceCallback<void()> callback);
private:
ArcBridgeService* const arc_bridge_service_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment