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

Unified Diff: components/update_client/task_update.h

Issue 1440393002: Reland of Change the update_client task runner behavior to continue on shutdown. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « components/update_client/task.h ('k') | components/update_client/task_update.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/update_client/task_update.h
diff --git a/components/update_client/task_update.h b/components/update_client/task_update.h
index 3d0963fb55d7eccadedb13e9e28723452a445ca4..aa3ce9d3b0f5645224e77df59b52cc5d96c87242 100644
--- a/components/update_client/task_update.h
+++ b/components/update_client/task_update.h
@@ -40,11 +40,14 @@
void Run() override;
+ void Cancel() override;
+
std::vector<std::string> GetIds() const override;
private:
- // Called when the Run function associated with this task has completed.
- void RunComplete(int error);
+ // Called when the task has completed either because the task has run or
+ // it has been canceled.
+ void TaskComplete(int error);
base::ThreadChecker thread_checker_;
« no previous file with comments | « components/update_client/task.h ('k') | components/update_client/task_update.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698