Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(408)

Unified Diff: components/offline_pages/archive_manager.cc

Issue 2006923005: [Offline Pages] Two-step expiration in storage manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/offline_pages/archive_manager.cc
diff --git a/components/offline_pages/archive_manager.cc b/components/offline_pages/archive_manager.cc
index 8df6b541e346fc0d63b8f7a9f63cd11edeee99cf..4b2494c815078cda01971c11b67f37a3002122ff 100644
--- a/components/offline_pages/archive_manager.cc
+++ b/components/offline_pages/archive_manager.cc
@@ -40,6 +40,8 @@ void DeleteArchivesImpl(const std::vector<base::FilePath>& file_paths,
// Make sure delete happens on the left of || so that it is always executed.
result = base::DeleteFile(file_path, false) || result;
}
+ if (file_paths.size() == 0)
+ result = true;
task_runner->PostTask(FROM_HERE, base::Bind(callback, result));
}

Powered by Google App Engine
This is Rietveld 408576698