| Index: chrome/browser/chromeos/settings/device_settings_service.cc
|
| diff --git a/chrome/browser/chromeos/settings/device_settings_service.cc b/chrome/browser/chromeos/settings/device_settings_service.cc
|
| index 9ba93243c923ee032a906fe81efc1329754b4f78..c4791aac0c3fc17068238d57b4773f0c7511cd75 100644
|
| --- a/chrome/browser/chromeos/settings/device_settings_service.cc
|
| +++ b/chrome/browser/chromeos/settings/device_settings_service.cc
|
| @@ -147,14 +147,14 @@ void DeviceSettingsService::Store(scoped_ptr<em::PolicyFetchResponse> policy,
|
|
|
| DeviceSettingsService::OwnershipStatus
|
| DeviceSettingsService::GetOwnershipStatus() {
|
| - if (public_key_)
|
| + if (public_key_.get())
|
| return public_key_->is_loaded() ? OWNERSHIP_TAKEN : OWNERSHIP_NONE;
|
| return OWNERSHIP_UNKNOWN;
|
| }
|
|
|
| void DeviceSettingsService::GetOwnershipStatusAsync(
|
| const OwnershipStatusCallback& callback) {
|
| - if (public_key_) {
|
| + if (public_key_.get()) {
|
| // If there is a key, report status immediately.
|
| base::MessageLoop::current()->PostTask(
|
| FROM_HERE, base::Bind(callback, GetOwnershipStatus()));
|
|
|