Index: chromeos/dbus/fake_auth_policy_client.h |
diff --git a/chromeos/dbus/fake_auth_policy_client.h b/chromeos/dbus/fake_auth_policy_client.h |
index 55da46fc5df900290bf1dff08ba538988288b59c..c29b1a2bfce81b4d6411e3cb1408bbd3c2519424 100644 |
--- a/chromeos/dbus/fake_auth_policy_client.h |
+++ b/chromeos/dbus/fake_auth_policy_client.h |
@@ -8,6 +8,7 @@ |
#include <string> |
#include "base/macros.h" |
+#include "base/memory/weak_ptr.h" |
#include "chromeos/dbus/auth_policy_client.h" |
@@ -25,11 +26,17 @@ class CHROMEOS_EXPORT FakeAuthPolicyClient : public AuthPolicyClient { |
const std::string& user, |
int password_fd, |
const JoinCallback& callback) override; |
- void RefreshDevicePolicy(const RefreshPolicyCallback& calllback) override; |
+ void RefreshDevicePolicy(const RefreshPolicyCallback& callback) override; |
void RefreshUserPolicy(const std::string& account_id, |
- const RefreshPolicyCallback& calllback) override; |
+ const RefreshPolicyCallback& callback) override; |
private: |
+ // Called after the empty device policy file has been written. |
+ void OnDevicePolicyFileWritten(const RefreshPolicyCallback& callback, |
+ bool success); |
+ |
+ base::WeakPtrFactory<FakeAuthPolicyClient> weak_factory_; |
+ |
DISALLOW_COPY_AND_ASSIGN(FakeAuthPolicyClient); |
}; |