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

Unified Diff: components/update_client/update_client.cc

Issue 2831473002: Add a callback parameter to UpdateClient::SendUninstallPing. (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « components/update_client/update_client.h ('k') | components/update_client/update_client_internal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/update_client/update_client.cc
diff --git a/components/update_client/update_client.cc b/components/update_client/update_client.cc
index 3dc567d933bb8e19e7faa986902643373343df67..e4953920313afe442ef143e8ac76597b850b51c5 100644
--- a/components/update_client/update_client.cc
+++ b/components/update_client/update_client.cc
@@ -234,7 +234,8 @@ void UpdateClientImpl::Stop() {
void UpdateClientImpl::SendUninstallPing(const std::string& id,
const base::Version& version,
- int reason) {
+ int reason,
+ const Callback& callback) {
DCHECK(thread_checker_.CalledOnValidThread());
// The implementation of PingManager::SendPing contains a self-deleting
@@ -247,6 +248,9 @@ void UpdateClientImpl::SendUninstallPing(const std::string& id,
item.extra_code1 = reason;
ping_manager_->SendPing(&item);
+
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
+ FROM_HERE, base::Bind(callback, Error::NONE));
}
scoped_refptr<UpdateClient> UpdateClientFactory(
« no previous file with comments | « components/update_client/update_client.h ('k') | components/update_client/update_client_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698