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 |