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

Side by Side Diff: chrome/browser/chromeos/settings/device_settings_test_helper.h

Issue 2714493002: Load DeviceLocalAccount policy and DeviceSettings immediately on restore after Chrome crash. (Closed)
Patch Set: add flag to correctly process LoadImmediately() call 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 4
5 #ifndef CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_TEST_HELPER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_TEST_HELPER_H_
6 #define CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_TEST_HELPER_H_ 6 #define CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_TEST_HELPER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 void StartSession(const cryptohome::Identification& cryptohome_id) override; 94 void StartSession(const cryptohome::Identification& cryptohome_id) override;
95 void StopSession() override; 95 void StopSession() override;
96 void NotifySupervisedUserCreationStarted() override; 96 void NotifySupervisedUserCreationStarted() override;
97 void NotifySupervisedUserCreationFinished() override; 97 void NotifySupervisedUserCreationFinished() override;
98 void StartDeviceWipe() override; 98 void StartDeviceWipe() override;
99 void RequestLockScreen() override; 99 void RequestLockScreen() override;
100 void NotifyLockScreenShown() override; 100 void NotifyLockScreenShown() override;
101 void NotifyLockScreenDismissed() override; 101 void NotifyLockScreenDismissed() override;
102 void RetrieveActiveSessions(const ActiveSessionsCallback& callback) override; 102 void RetrieveActiveSessions(const ActiveSessionsCallback& callback) override;
103 void RetrieveDevicePolicy(const RetrievePolicyCallback& callback) override; 103 void RetrieveDevicePolicy(const RetrievePolicyCallback& callback) override;
104 std::string BlockingRetrieveDevicePolicy() override;
104 void RetrievePolicyForUser(const cryptohome::Identification& cryptohome_id, 105 void RetrievePolicyForUser(const cryptohome::Identification& cryptohome_id,
105 const RetrievePolicyCallback& callback) override; 106 const RetrievePolicyCallback& callback) override;
106 std::string BlockingRetrievePolicyForUser( 107 std::string BlockingRetrievePolicyForUser(
107 const cryptohome::Identification& cryptohome_id) override; 108 const cryptohome::Identification& cryptohome_id) override;
108 void RetrieveDeviceLocalAccountPolicy( 109 void RetrieveDeviceLocalAccountPolicy(
109 const std::string& account_id, 110 const std::string& account_id,
110 const RetrievePolicyCallback& callback) override; 111 const RetrievePolicyCallback& callback) override;
112 std::string BlockingRetrieveDeviceLocalAccountPolicy(
113 const std::string& account_id) override;
111 void StoreDevicePolicy(const std::string& policy_blob, 114 void StoreDevicePolicy(const std::string& policy_blob,
112 const StorePolicyCallback& callback) override; 115 const StorePolicyCallback& callback) override;
113 void StorePolicyForUser(const cryptohome::Identification& cryptohome_id, 116 void StorePolicyForUser(const cryptohome::Identification& cryptohome_id,
114 const std::string& policy_blob, 117 const std::string& policy_blob,
115 const StorePolicyCallback& callback) override; 118 const StorePolicyCallback& callback) override;
116 void StoreDeviceLocalAccountPolicy( 119 void StoreDeviceLocalAccountPolicy(
117 const std::string& account_id, 120 const std::string& account_id,
118 const std::string& policy_blob, 121 const std::string& policy_blob,
119 const StorePolicyCallback& callback) override; 122 const StorePolicyCallback& callback) override;
120 bool SupportsRestartToApplyUserFlags() const override; 123 bool SupportsRestartToApplyUserFlags() const override;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 210
208 std::unique_ptr<DBusThreadManagerSetter> dbus_setter_; 211 std::unique_ptr<DBusThreadManagerSetter> dbus_setter_;
209 212
210 private: 213 private:
211 DISALLOW_COPY_AND_ASSIGN(DeviceSettingsTestBase); 214 DISALLOW_COPY_AND_ASSIGN(DeviceSettingsTestBase);
212 }; 215 };
213 216
214 } // namespace chromeos 217 } // namespace chromeos
215 218
216 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_TEST_HELPER_H_ 219 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_TEST_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698