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

Unified Diff: chromeos/dbus/update_engine_client.cc

Issue 2933923002: Remove update icon after user confirms download (Closed)
Patch Set: Apply fix to patch set 2 Created 3 years, 6 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 | « chromeos/dbus/update_engine_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/update_engine_client.cc
diff --git a/chromeos/dbus/update_engine_client.cc b/chromeos/dbus/update_engine_client.cc
index 218cd4af3aa2de9f0bf3b232e045b51a29becc2a..ac34a99122b6fee508281f999523715aa701ee35 100644
--- a/chromeos/dbus/update_engine_client.cc
+++ b/chromeos/dbus/update_engine_client.cc
@@ -468,13 +468,18 @@ class UpdateEngineClientImpl : public UpdateEngineClient {
void OnSetUpdateOverCellularTarget(
const SetUpdateOverCellularTargetCallback& callback,
dbus::Response* response) {
+ bool success = true;
if (!response) {
+ success = false;
LOG(ERROR) << update_engine::kSetUpdateOverCellularTarget
<< " call failed";
- callback.Run(false);
- return;
}
- callback.Run(true);
+
+ for (auto& observer : observers_) {
+ observer.OnUpdateOverCellularTargetSet(success);
+ }
+
+ callback.Run(success);
}
// Called when a status update signal is received.
« no previous file with comments | « chromeos/dbus/update_engine_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698