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

Unified Diff: extensions/browser/updater/update_service.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
Index: extensions/browser/updater/update_service.cc
diff --git a/extensions/browser/updater/update_service.cc b/extensions/browser/updater/update_service.cc
index 8946a16b9400fe399a5df01316a11e383a59dc9d..92b5efee03d6ab786c021d17e9b1eaef122fcd09 100644
--- a/extensions/browser/updater/update_service.cc
+++ b/extensions/browser/updater/update_service.cc
@@ -18,6 +18,8 @@ namespace {
void UpdateCheckCompleteCallback(update_client::Error error) {}
+void SendUninstallPingCompleteCallback(update_client::Error error) {}
+
void InstallUpdateCallback(content::BrowserContext* context,
const std::string& extension_id,
const base::FilePath& temp_dir) {
@@ -46,7 +48,8 @@ void UpdateService::Shutdown() {
void UpdateService::SendUninstallPing(const std::string& id,
const base::Version& version,
int reason) {
- update_client_->SendUninstallPing(id, version, reason);
+ update_client_->SendUninstallPing(
+ id, version, reason, base::Bind(&SendUninstallPingCompleteCallback));
}
void UpdateService::StartUpdateCheck(
« no previous file with comments | « components/update_client/update_client_unittest.cc ('k') | extensions/browser/updater/update_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698