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

Unified Diff: extensions/browser/api/webcam_private/webcam_private_api_chromeos.cc

Issue 1902873002: Convert //extensions/browser/api from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « extensions/browser/api/webcam_private/webcam_private_api.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/webcam_private/webcam_private_api_chromeos.cc
diff --git a/extensions/browser/api/webcam_private/webcam_private_api_chromeos.cc b/extensions/browser/api/webcam_private/webcam_private_api_chromeos.cc
index 31e381b37f937419ef38f37298ca8fcd7affa4dd..bfdc47ac9a425e234a04f0a3ea10ce9b413fd253 100644
--- a/extensions/browser/api/webcam_private/webcam_private_api_chromeos.cc
+++ b/extensions/browser/api/webcam_private/webcam_private_api_chromeos.cc
@@ -183,7 +183,7 @@ WebcamPrivateOpenSerialWebcamFunction::
}
bool WebcamPrivateOpenSerialWebcamFunction::RunAsync() {
- scoped_ptr<webcam_private::OpenSerialWebcam::Params> params(
+ std::unique_ptr<webcam_private::OpenSerialWebcam::Params> params(
webcam_private::OpenSerialWebcam::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params.get());
@@ -218,7 +218,7 @@ WebcamPrivateCloseWebcamFunction::~WebcamPrivateCloseWebcamFunction() {
}
bool WebcamPrivateCloseWebcamFunction::RunAsync() {
- scoped_ptr<webcam_private::CloseWebcam::Params> params(
+ std::unique_ptr<webcam_private::CloseWebcam::Params> params(
webcam_private::CloseWebcam::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params.get());
@@ -233,7 +233,7 @@ WebcamPrivateSetFunction::~WebcamPrivateSetFunction() {
}
bool WebcamPrivateSetFunction::RunAsync() {
- scoped_ptr<webcam_private::Set::Params> params(
+ std::unique_ptr<webcam_private::Set::Params> params(
webcam_private::Set::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params.get());
@@ -333,7 +333,7 @@ WebcamPrivateGetFunction::~WebcamPrivateGetFunction() {
}
bool WebcamPrivateGetFunction::RunAsync() {
- scoped_ptr<webcam_private::Get::Params> params(
+ std::unique_ptr<webcam_private::Get::Params> params(
webcam_private::Get::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params.get());
@@ -397,7 +397,7 @@ WebcamPrivateResetFunction::~WebcamPrivateResetFunction() {
}
bool WebcamPrivateResetFunction::RunAsync() {
- scoped_ptr<webcam_private::Reset::Params> params(
+ std::unique_ptr<webcam_private::Reset::Params> params(
webcam_private::Reset::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params.get());
« no previous file with comments | « extensions/browser/api/webcam_private/webcam_private_api.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698