Index: components/ownership/owner_settings_service.cc |
diff --git a/components/ownership/owner_settings_service.cc b/components/ownership/owner_settings_service.cc |
index b15609e70452c7fef2cd1792ce20441e7a40ed49..49905941ed898d39c8480e73f3b86b8b040577ee 100644 |
--- a/components/ownership/owner_settings_service.cc |
+++ b/components/ownership/owner_settings_service.cc |
@@ -37,7 +37,7 @@ scoped_ptr<em::PolicyFetchResponse> AssembleAndSignPolicy( |
new em::PolicyFetchResponse()); |
if (!policy->SerializeToString(policy_response->mutable_policy_data())) { |
LOG(ERROR) << "Failed to encode policy payload."; |
- return scoped_ptr<em::PolicyFetchResponse>(nullptr).Pass(); |
+ return scoped_ptr<em::PolicyFetchResponse>(nullptr); |
} |
ScopedSGNContext sign_context( |
@@ -62,7 +62,7 @@ scoped_ptr<em::PolicyFetchResponse> AssembleAndSignPolicy( |
reinterpret_cast<const char*>(signature_item.data), signature_item.len); |
SECITEM_FreeItem(&signature_item, PR_FALSE); |
- return policy_response.Pass(); |
+ return policy_response; |
} |
} // namepace |