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

Unified Diff: chrome/browser/extensions/api/identity/web_auth_flow.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/web_auth_flow.cc
diff --git a/chrome/browser/extensions/api/identity/web_auth_flow.cc b/chrome/browser/extensions/api/identity/web_auth_flow.cc
index 2859e92324ea1df164ae3db09a1b884a435fc4e7..63367649f125b6d74558804eee6450af20e47e03 100644
--- a/chrome/browser/extensions/api/identity/web_auth_flow.cc
+++ b/chrome/browser/extensions/api/identity/web_auth_flow.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/extensions/api/identity/web_auth_flow.h"
+#include <utility>
+
#include "base/base64.h"
#include "base/location.h"
#include "base/message_loop/message_loop.h"
@@ -88,9 +90,9 @@ void WebAuthFlow::Start() {
else
args->AppendString("silent");
- scoped_ptr<Event> event(
- new Event(events::IDENTITY_PRIVATE_ON_WEB_FLOW_REQUEST,
- identity_private::OnWebFlowRequest::kEventName, args.Pass()));
+ scoped_ptr<Event> event(new Event(
+ events::IDENTITY_PRIVATE_ON_WEB_FLOW_REQUEST,
+ identity_private::OnWebFlowRequest::kEventName, std::move(args)));
event->restrict_to_browser_context = profile_;
ExtensionSystem* system = ExtensionSystem::Get(profile_);
@@ -103,7 +105,7 @@ void WebAuthFlow::Start() {
}
EventRouter::Get(profile_)->DispatchEventWithLazyListener(
- extension_misc::kIdentityApiUiAppId, event.Pass());
+ extension_misc::kIdentityApiUiAppId, std::move(event));
}
void WebAuthFlow::DetachDelegateAndDelete() {

Powered by Google App Engine
This is Rietveld 408576698