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

Unified Diff: chromeos/dbus/auth_policy_client.cc

Issue 2601283002: Use AccountIdKey to identify Active Directory accounts. (Closed)
Patch Set: rebase Created 3 years, 12 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 | chromeos/login/auth/cryptohome_authenticator.cc » ('j') | 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 f3181c9b7b534db94917366835d4edb0678e8fa1..43578e3f67470183c8f91813253e192220a804a6 100644
--- a/chromeos/dbus/auth_policy_client.cc
+++ b/chromeos/dbus/auth_policy_client.cc
@@ -71,12 +71,11 @@ class AuthPolicyClientImpl : public AuthPolicyClient {
void RefreshUserPolicy(const AccountId& account_id,
const RefreshPolicyCallback& callback) override {
+ DCHECK(account_id.GetAccountType() == AccountType::ACTIVE_DIRECTORY);
dbus::MethodCall method_call(authpolicy::kAuthPolicyInterface,
authpolicy::kAuthPolicyRefreshUserPolicy);
dbus::MessageWriter writer(&method_call);
- // TODO(tnagel): Switch to GUID once authpolicyd, session_manager and
- // cryptohome support it, cf. https://crbug.com/677497.
- writer.AppendString(account_id.GetUserEmail());
+ writer.AppendString(account_id.GetAccountIdKey());
proxy_->CallMethod(
&method_call, dbus::ObjectProxy::TIMEOUT_USE_DEFAULT,
base::Bind(&AuthPolicyClientImpl::HandleRefreshPolicyCallback,
« no previous file with comments | « no previous file | chromeos/login/auth/cryptohome_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698