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

Side by Side Diff: chromeos/dbus/auth_policy_client.cc

Issue 2681673003: Chromad: Extend D-BUS timeout for the domain join call (Closed)
Patch Set: Created 3 years, 10 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 #include "chromeos/dbus/auth_policy_client.h" 4 #include "chromeos/dbus/auth_policy_client.h"
5 5
6 #include "base/bind.h" 6 #include "base/bind.h"
7 #include "base/memory/weak_ptr.h" 7 #include "base/memory/weak_ptr.h"
8 #include "components/signin/core/account_id/account_id.h" 8 #include "components/signin/core/account_id/account_id.h"
9 #include "dbus/bus.h" 9 #include "dbus/bus.h"
10 #include "dbus/message.h" 10 #include "dbus/message.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 void JoinAdDomain(const std::string& machine_name, 42 void JoinAdDomain(const std::string& machine_name,
43 const std::string& user_principal_name, 43 const std::string& user_principal_name,
44 int password_fd, 44 int password_fd,
45 const JoinCallback& callback) override { 45 const JoinCallback& callback) override {
46 dbus::MethodCall method_call(authpolicy::kAuthPolicyInterface, 46 dbus::MethodCall method_call(authpolicy::kAuthPolicyInterface,
47 authpolicy::kAuthPolicyJoinADDomain); 47 authpolicy::kAuthPolicyJoinADDomain);
48 dbus::MessageWriter writer(&method_call); 48 dbus::MessageWriter writer(&method_call);
49 writer.AppendString(machine_name); 49 writer.AppendString(machine_name);
50 writer.AppendString(user_principal_name); 50 writer.AppendString(user_principal_name);
51 writer.AppendFileDescriptor(password_fd); 51 writer.AppendFileDescriptor(password_fd);
52 proxy_->CallMethod(&method_call, dbus::ObjectProxy::TIMEOUT_USE_DEFAULT, 52 proxy_->CallMethod(&method_call, kSlowDbusTimeoutMilliseconds,
53 base::Bind(&AuthPolicyClientImpl::HandleJoinCallback, 53 base::Bind(&AuthPolicyClientImpl::HandleJoinCallback,
54 weak_ptr_factory_.GetWeakPtr(), callback)); 54 weak_ptr_factory_.GetWeakPtr(), callback));
55 } 55 }
56 56
57 void AuthenticateUser(const std::string& user_principal_name, 57 void AuthenticateUser(const std::string& user_principal_name,
58 int password_fd, 58 int password_fd,
59 const AuthCallback& callback) override { 59 const AuthCallback& callback) override {
60 dbus::MethodCall method_call(authpolicy::kAuthPolicyInterface, 60 dbus::MethodCall method_call(authpolicy::kAuthPolicyInterface,
61 authpolicy::kAuthPolicyAuthenticateUser); 61 authpolicy::kAuthPolicyAuthenticateUser);
62 dbus::MessageWriter writer(&method_call); 62 dbus::MessageWriter writer(&method_call);
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 AuthPolicyClient::AuthPolicyClient() {} 151 AuthPolicyClient::AuthPolicyClient() {}
152 152
153 AuthPolicyClient::~AuthPolicyClient() {} 153 AuthPolicyClient::~AuthPolicyClient() {}
154 154
155 // static 155 // static
156 AuthPolicyClient* AuthPolicyClient::Create() { 156 AuthPolicyClient* AuthPolicyClient::Create() {
157 return new AuthPolicyClientImpl(); 157 return new AuthPolicyClientImpl();
158 } 158 }
159 159
160 } // namespace chromeos 160 } // namespace chromeos
OLDNEW
« 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