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

Unified Diff: components/offline_pages/core/background/offliner_stub.cc

Issue 2715433006: [Offline Pages] Turn Offliner::Cancel into an async operation to resolve conflicting assumptions (Closed)
Patch Set: forgot to init Created 3 years, 10 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/core/background/offliner_stub.cc
diff --git a/components/offline_pages/core/background/offliner_stub.cc b/components/offline_pages/core/background/offliner_stub.cc
index 3b3c1f56164da0ca94ff8a3f7633e756edf5b49b..c007ae0a0aa54edb3e1e020de51101aa8ea367ee 100644
--- a/components/offline_pages/core/background/offliner_stub.cc
+++ b/components/offline_pages/core/background/offliner_stub.cc
@@ -34,8 +34,9 @@ bool OfflinerStub::LoadAndSave(const SavePageRequest& request,
return true;
}
-void OfflinerStub::Cancel() {
+void OfflinerStub::Cancel(const CancelCallback& callback) {
cancel_called_ = true;
+ callback.Run(0LL);
}
bool OfflinerStub::HandleTimeout(const SavePageRequest& request) {

Powered by Google App Engine
This is Rietveld 408576698