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

Unified Diff: chrome/browser/policy/device_policy_identity_strategy.cc

Issue 6882038: Move writing information to the lockbox after registering with the DM server. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed nits and rebase issues. Created 9 years, 8 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
Index: chrome/browser/policy/device_policy_identity_strategy.cc
diff --git a/chrome/browser/policy/device_policy_identity_strategy.cc b/chrome/browser/policy/device_policy_identity_strategy.cc
index 94174a9a10d7e59f1d225922e30f65f2a1e30f29..909cfbd2357a01e733e75dc3cad44ac6a9f6693c 100644
--- a/chrome/browser/policy/device_policy_identity_strategy.cc
+++ b/chrome/browser/policy/device_policy_identity_strategy.cc
@@ -84,6 +84,11 @@ void DevicePolicyIdentityStrategy::SetDeviceManagementCredentials(
NotifyDeviceTokenChanged();
}
+void DevicePolicyIdentityStrategy::FetchPolicy() {
+ DCHECK(!device_token_.empty());
+ NotifyDeviceTokenChanged();
+}
+
bool DevicePolicyIdentityStrategy::GetCredentials(std::string* username,
std::string* auth_token) {
*username = username_;
@@ -95,7 +100,6 @@ bool DevicePolicyIdentityStrategy::GetCredentials(std::string* username,
void DevicePolicyIdentityStrategy::OnDeviceTokenAvailable(
const std::string& token) {
device_token_ = token;
- NotifyDeviceTokenChanged();
}
} // namespace policy

Powered by Google App Engine
This is Rietveld 408576698