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

Unified Diff: chrome/browser/extensions/api/identity/identity_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/identity/identity_api.cc
diff --git a/chrome/browser/extensions/api/identity/identity_api.cc b/chrome/browser/extensions/api/identity/identity_api.cc
index 3155af0d7d12101eb4693bc686547aae6d3fe53e..52bacbba5311fd6b14c130633605136c78d0945d 100644
--- a/chrome/browser/extensions/api/identity/identity_api.cc
+++ b/chrome/browser/extensions/api/identity/identity_api.cc
@@ -247,11 +247,12 @@ void IdentityAPI::OnAccountSignInChanged(const gaia::AccountIds& ids,
api::identity::AccountInfo account_info;
account_info.id = ids.gaia;
- scoped_ptr<base::ListValue> args =
+ std::unique_ptr<base::ListValue> args =
api::identity::OnSignInChanged::Create(account_info, is_signed_in);
- scoped_ptr<Event> event(new Event(events::IDENTITY_ON_SIGN_IN_CHANGED,
- api::identity::OnSignInChanged::kEventName,
- std::move(args), browser_context_));
+ std::unique_ptr<Event> event(
+ new Event(events::IDENTITY_ON_SIGN_IN_CHANGED,
+ api::identity::OnSignInChanged::kEventName, std::move(args),
+ browser_context_));
EventRouter::Get(browser_context_)->BroadcastEvent(std::move(event));
}
@@ -326,7 +327,7 @@ bool IdentityGetAuthTokenFunction::RunAsync() {
return false;
}
- scoped_ptr<identity::GetAuthToken::Params> params(
+ std::unique_ptr<identity::GetAuthToken::Params> params(
identity::GetAuthToken::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params.get());
interactive_ = params->details.get() &&
@@ -932,7 +933,7 @@ bool IdentityRemoveCachedAuthTokenFunction::RunSync() {
return false;
}
- scoped_ptr<identity::RemoveCachedAuthToken::Params> params(
+ std::unique_ptr<identity::RemoveCachedAuthToken::Params> params(
identity::RemoveCachedAuthToken::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params.get());
IdentityAPI::GetFactoryInstance()->Get(GetProfile())->EraseCachedToken(
@@ -953,7 +954,7 @@ bool IdentityLaunchWebAuthFlowFunction::RunAsync() {
return false;
}
- scoped_ptr<identity::LaunchWebAuthFlow::Params> params(
+ std::unique_ptr<identity::LaunchWebAuthFlow::Params> params(
identity::LaunchWebAuthFlow::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params.get());
« no previous file with comments | « chrome/browser/extensions/api/identity/identity_api.h ('k') | chrome/browser/extensions/api/identity/identity_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698