| 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() {
|
|
|