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

Unified Diff: chrome/browser/extensions/api/copresence_private/copresence_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/copresence_private/copresence_private_api.cc
diff --git a/chrome/browser/extensions/api/copresence_private/copresence_private_api.cc b/chrome/browser/extensions/api/copresence_private/copresence_private_api.cc
index 71d33ec90318317b03c4efa2e66bbf8fe1a40dcc..4bdaf0f8301ed82d7e7a5380ba44343f89a7bc56 100644
--- a/chrome/browser/extensions/api/copresence_private/copresence_private_api.cc
+++ b/chrome/browser/extensions/api/copresence_private/copresence_private_api.cc
@@ -92,7 +92,7 @@ void BrowserContextKeyedAPIFactory<CopresencePrivateService>
// CopresenceSendFoundFunction implementation:
ExtensionFunction::ResponseAction CopresencePrivateSendFoundFunction::Run() {
- scoped_ptr<SendFound::Params> params(SendFound::Params::Create(*args_));
+ std::unique_ptr<SendFound::Params> params(SendFound::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params.get());
WhispernetClient* whispernet_client =
@@ -112,7 +112,8 @@ ExtensionFunction::ResponseAction CopresencePrivateSendFoundFunction::Run() {
// CopresenceSendEncodedFunction implementation:
ExtensionFunction::ResponseAction CopresencePrivateSendSamplesFunction::Run() {
- scoped_ptr<SendSamples::Params> params(SendSamples::Params::Create(*args_));
+ std::unique_ptr<SendSamples::Params> params(
+ SendSamples::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params.get());
WhispernetClient* whispernet_client =
@@ -136,7 +137,7 @@ ExtensionFunction::ResponseAction CopresencePrivateSendSamplesFunction::Run() {
// CopresenceSendInitializedFunction implementation:
ExtensionFunction::ResponseAction
CopresencePrivateSendInitializedFunction::Run() {
- scoped_ptr<SendInitialized::Params> params(
+ std::unique_ptr<SendInitialized::Params> params(
SendInitialized::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params.get());

Powered by Google App Engine
This is Rietveld 408576698