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

Unified Diff: chrome/browser/extensions/api/identity/identity_api.cc

Issue 1549233002: Convert Pass()→std::move() in //chrome/browser/extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years 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 937a23184d0d41e58e374cb3b89eabc419565ba8..5c217b2eed6fb94bbf6f0e2e9f26a596d8befb4f 100644
--- a/chrome/browser/extensions/api/identity/identity_api.cc
+++ b/chrome/browser/extensions/api/identity/identity_api.cc
@@ -248,9 +248,9 @@ void IdentityAPI::OnAccountSignInChanged(const gaia::AccountIds& ids,
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,
- args.Pass(), browser_context_));
+ std::move(args), browser_context_));
- EventRouter::Get(browser_context_)->BroadcastEvent(event.Pass());
+ EventRouter::Get(browser_context_)->BroadcastEvent(std::move(event));
}
void IdentityAPI::AddShutdownObserver(ShutdownObserver* observer) {

Powered by Google App Engine
This is Rietveld 408576698