Commit 36524115 authored by dcheng's avatar dcheng Committed by Commit bot

Remove implicit conversions from scoped_refptr to T* in c/b/chromeos/ownership

This patch was generated by running the rewrite_scoped_refptr clang tool
on a ChromeOS build.

BUG=110610

Review URL: https://codereview.chromium.org/569173006

Cr-Commit-Position: refs/heads/master@{#295176}
parent f866d7ab
......@@ -122,7 +122,7 @@ bool DoesPrivateKeyExistAsyncHelper(
void DoesPrivateKeyExistAsync(
const scoped_refptr<OwnerKeyUtil>& owner_key_util,
const OwnerSettingsServiceChromeOS::IsOwnerCallback& callback) {
if (!owner_key_util) {
if (!owner_key_util.get()) {
callback.Run(false);
return;
}
......@@ -304,8 +304,8 @@ void OwnerSettingsServiceChromeOS::HandleCompletedOperation(
service->set_device_settings(operation->device_settings().Pass());
}
if ((operation->public_key() && !public_key_) ||
(operation->public_key() && public_key_ &&
if ((operation->public_key().get() && !public_key_.get()) ||
(operation->public_key().get() && public_key_.get() &&
operation->public_key()->data() != public_key_->data())) {
// Public part changed so we need to reload private part too.
ReloadKeypair();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment