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

Unified Diff: chromeos/dbus/auth_policy_client.cc

Issue 2640323002: Check error returned from RefreshPolicy calls (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/auth_policy_client.cc
diff --git a/chromeos/dbus/auth_policy_client.cc b/chromeos/dbus/auth_policy_client.cc
index 43578e3f67470183c8f91813253e192220a804a6..7725b84fff198cd713c7d7434c9f461cfd4a6bd5 100644
--- a/chromeos/dbus/auth_policy_client.cc
+++ b/chromeos/dbus/auth_policy_client.cc
@@ -98,7 +98,8 @@ class AuthPolicyClientImpl : public AuthPolicyClient {
callback.Run(false);
return;
}
- callback.Run(true);
+ dbus::MessageReader reader(response);
+ callback.Run(GetErrorFromReader(&reader) == authpolicy::ERROR_NONE);
}
void HandleJoinCallback(const JoinCallback& callback,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698