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

Unified Diff: chromeos/dbus/fake_auth_policy_client.h

Issue 2531063002: Implement FakeAuthPolicyClient::RefreshDevicePolicy() (Closed)
Patch Set: Address Achuith's comments Created 4 years 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
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);
};

Powered by Google App Engine
This is Rietveld 408576698