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

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

Issue 2744553005: [Offline Pages] Turn Offliner::Cancel into an async operation to resolve conflicting assumptions be… (Closed)
Patch Set: Created 3 years, 9 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 4598a0e4283fc7c7f9e07ef7d11156ace35b2466..04fe6eae1341d75923a1ecc128c7323266869d3c 100644
--- a/components/offline_pages/core/background/offliner_stub.cc
+++ b/components/offline_pages/core/background/offliner_stub.cc
@@ -39,8 +39,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