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

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

Issue 12218078: Implement a policy to autologin a public account. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move user activity timer reset to WebUILoginDisplay Created 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/policy/device_local_account_policy_store.cc
diff --git a/chrome/browser/policy/device_local_account_policy_store.cc b/chrome/browser/policy/device_local_account_policy_store.cc
index 7f93f11274b6a109d3faf2e1890e1bb0ba05e806..36ccf8b53ced76d16b4493271ffb011c376b164f 100644
--- a/chrome/browser/policy/device_local_account_policy_store.cc
+++ b/chrome/browser/policy/device_local_account_policy_store.cc
@@ -150,7 +150,7 @@ void DeviceLocalAccountPolicyStore::Validate(
DCHECK_NE(chromeos::DeviceSettingsService::OWNERSHIP_UNKNOWN,
ownership_status);
chromeos::OwnerKey* key = device_settings_service_->GetOwnerKey();
- if (!key->public_key()) {
+ if (!key || !key->public_key()) {
status_ = CloudPolicyStore::STATUS_BAD_STATE;
NotifyStoreLoaded();
return;

Powered by Google App Engine
This is Rietveld 408576698