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

Unified Diff: chrome/browser/extensions/api/autotest_private/autotest_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/autotest_private/autotest_private_api.cc
diff --git a/chrome/browser/extensions/api/autotest_private/autotest_private_api.cc b/chrome/browser/extensions/api/autotest_private/autotest_private_api.cc
index 735e981eeabd27955ef19f3e64c21c48a5b5d568..39740943fee050fbe083e73d28ac3696bfde4f43 100644
--- a/chrome/browser/extensions/api/autotest_private/autotest_private_api.cc
+++ b/chrome/browser/extensions/api/autotest_private/autotest_private_api.cc
@@ -82,7 +82,7 @@ bool AutotestPrivateRestartFunction::RunSync() {
}
bool AutotestPrivateShutdownFunction::RunSync() {
- scoped_ptr<api::autotest_private::Shutdown::Params> params(
+ std::unique_ptr<api::autotest_private::Shutdown::Params> params(
api::autotest_private::Shutdown::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params.get());
@@ -227,7 +227,7 @@ bool AutotestPrivateSimulateAsanMemoryBugFunction::RunSync() {
}
bool AutotestPrivateSetTouchpadSensitivityFunction::RunSync() {
- scoped_ptr<api::autotest_private::SetTouchpadSensitivity::Params> params(
+ std::unique_ptr<api::autotest_private::SetTouchpadSensitivity::Params> params(
api::autotest_private::SetTouchpadSensitivity::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params.get());
@@ -241,7 +241,7 @@ bool AutotestPrivateSetTouchpadSensitivityFunction::RunSync() {
}
bool AutotestPrivateSetTapToClickFunction::RunSync() {
- scoped_ptr<api::autotest_private::SetTapToClick::Params> params(
+ std::unique_ptr<api::autotest_private::SetTapToClick::Params> params(
api::autotest_private::SetTapToClick::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params.get());
@@ -254,7 +254,7 @@ bool AutotestPrivateSetTapToClickFunction::RunSync() {
}
bool AutotestPrivateSetThreeFingerClickFunction::RunSync() {
- scoped_ptr<api::autotest_private::SetThreeFingerClick::Params> params(
+ std::unique_ptr<api::autotest_private::SetThreeFingerClick::Params> params(
api::autotest_private::SetThreeFingerClick::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params.get());
@@ -268,7 +268,7 @@ bool AutotestPrivateSetThreeFingerClickFunction::RunSync() {
}
bool AutotestPrivateSetTapDraggingFunction::RunSync() {
- scoped_ptr<api::autotest_private::SetTapDragging::Params> params(
+ std::unique_ptr<api::autotest_private::SetTapDragging::Params> params(
api::autotest_private::SetTapDragging::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params.get());
@@ -281,7 +281,7 @@ bool AutotestPrivateSetTapDraggingFunction::RunSync() {
}
bool AutotestPrivateSetNaturalScrollFunction::RunSync() {
- scoped_ptr<api::autotest_private::SetNaturalScroll::Params> params(
+ std::unique_ptr<api::autotest_private::SetNaturalScroll::Params> params(
api::autotest_private::SetNaturalScroll::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params.get());
@@ -295,7 +295,7 @@ bool AutotestPrivateSetNaturalScrollFunction::RunSync() {
}
bool AutotestPrivateSetMouseSensitivityFunction::RunSync() {
- scoped_ptr<api::autotest_private::SetMouseSensitivity::Params> params(
+ std::unique_ptr<api::autotest_private::SetMouseSensitivity::Params> params(
api::autotest_private::SetMouseSensitivity::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params.get());
@@ -309,7 +309,7 @@ bool AutotestPrivateSetMouseSensitivityFunction::RunSync() {
}
bool AutotestPrivateSetPrimaryButtonRightFunction::RunSync() {
- scoped_ptr<api::autotest_private::SetPrimaryButtonRight::Params> params(
+ std::unique_ptr<api::autotest_private::SetPrimaryButtonRight::Params> params(
api::autotest_private::SetPrimaryButtonRight::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params.get());

Powered by Google App Engine
This is Rietveld 408576698