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

Unified Diff: chrome/browser/extensions/api/cloud_print_private/cloud_print_private_api.cc

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header Created 4 years, 8 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/extensions/api/cloud_print_private/cloud_print_private_api.cc
diff --git a/chrome/browser/extensions/api/cloud_print_private/cloud_print_private_api.cc b/chrome/browser/extensions/api/cloud_print_private/cloud_print_private_api.cc
index 0de30f6f956d4d5740ae8ba92cfeaeb47765730d..2f590068b522982da0c1e9ebfe0a242cc3bfe831 100644
--- a/chrome/browser/extensions/api/cloud_print_private/cloud_print_private_api.cc
+++ b/chrome/browser/extensions/api/cloud_print_private/cloud_print_private_api.cc
@@ -40,7 +40,7 @@ CloudPrintPrivateSetupConnectorFunction::
bool CloudPrintPrivateSetupConnectorFunction::RunAsync() {
#if defined(ENABLE_PRINT_PREVIEW)
using api::cloud_print_private::SetupConnector::Params;
- scoped_ptr<Params> params(Params::Create(*args_));
+ std::unique_ptr<Params> params(Params::Create(*args_));
if (CloudPrintTestsDelegate::instance()) {
CloudPrintTestsDelegate::instance()->SetupConnector(
params->user_email,
@@ -52,7 +52,7 @@ bool CloudPrintPrivateSetupConnectorFunction::RunAsync() {
CloudPrintProxyServiceFactory::GetForProfile(GetProfile());
if (!service)
return false;
- scoped_ptr<base::DictionaryValue> user_setings(
+ std::unique_ptr<base::DictionaryValue> user_setings(
params->user_settings.ToValue());
service->EnableForUserWithRobot(params->credentials,
params->robot_email,

Powered by Google App Engine
This is Rietveld 408576698