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

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

Issue 549313004: Remove implicit conversions from scoped_refptr to T* in c/b/chromeos/policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/chromeos/policy/device_local_account_policy_store.cc
diff --git a/chrome/browser/chromeos/policy/device_local_account_policy_store.cc b/chrome/browser/chromeos/policy/device_local_account_policy_store.cc
index da6c46098236c0f6089aa93c1644a55cdb96d426..a56b1b098e8f94e4997885394f21a33b196e3286 100644
--- a/chrome/browser/chromeos/policy/device_local_account_policy_store.cc
+++ b/chrome/browser/chromeos/policy/device_local_account_policy_store.cc
@@ -141,7 +141,7 @@ void DeviceLocalAccountPolicyStore::Validate(
device_settings_service_->policy_data();
scoped_refptr<ownership::PublicKey> key =
device_settings_service_->GetPublicKey();
- if (!key || !key->is_loaded() || !device_policy_data) {
+ if (!key.get() || !key->is_loaded() || !device_policy_data) {
status_ = CloudPolicyStore::STATUS_BAD_STATE;
NotifyStoreLoaded();
return;

Powered by Google App Engine
This is Rietveld 408576698