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

Unified Diff: extensions/browser/api/test/test_api.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
Index: extensions/browser/api/test/test_api.cc
diff --git a/extensions/browser/api/test/test_api.cc b/extensions/browser/api/test/test_api.cc
index be9f7c2b325fdeeceae9e7513091c4778a2bef00..9345a8f1dc7950489e50f03938d31923bbed0296 100644
--- a/extensions/browser/api/test/test_api.cc
+++ b/extensions/browser/api/test/test_api.cc
@@ -58,7 +58,8 @@ bool TestNotifyPassFunction::RunSafe() {
TestNotifyFailFunction::~TestNotifyFailFunction() {}
bool TestNotifyFailFunction::RunSafe() {
- scoped_ptr<NotifyFail::Params> params(NotifyFail::Params::Create(*args_));
+ std::unique_ptr<NotifyFail::Params> params(
+ NotifyFail::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params.get());
content::NotificationService::current()->Notify(
extensions::NOTIFICATION_EXTENSION_TEST_FAILED,
@@ -70,14 +71,15 @@ bool TestNotifyFailFunction::RunSafe() {
TestLogFunction::~TestLogFunction() {}
bool TestLogFunction::RunSafe() {
- scoped_ptr<Log::Params> params(Log::Params::Create(*args_));
+ std::unique_ptr<Log::Params> params(Log::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params.get());
VLOG(1) << params->message;
return true;
}
bool TestSendMessageFunction::RunAsync() {
- scoped_ptr<PassMessage::Params> params(PassMessage::Params::Create(*args_));
+ std::unique_ptr<PassMessage::Params> params(
+ PassMessage::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params.get());
content::NotificationService::current()->Notify(
extensions::NOTIFICATION_EXTENSION_TEST_MESSAGE,
@@ -131,7 +133,7 @@ bool TestGetConfigFunction::RunSafe() {
TestWaitForRoundTripFunction::~TestWaitForRoundTripFunction() {}
bool TestWaitForRoundTripFunction::RunSafe() {
- scoped_ptr<WaitForRoundTrip::Params> params(
+ std::unique_ptr<WaitForRoundTrip::Params> params(
WaitForRoundTrip::Params::Create(*args_));
SetResult(new base::StringValue(params->message));
return true;
« no previous file with comments | « extensions/browser/api/system_storage/system_storage_apitest.cc ('k') | extensions/browser/api/usb/usb_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698