| 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 c6c84168512b9e6464435389028b7075638c6c1a..4bad1dadb17ed64e75b925a6e98a02c53e63ea7a 100644
|
| --- a/chrome/browser/extensions/api/identity/web_auth_flow.cc
|
| +++ b/chrome/browser/extensions/api/identity/web_auth_flow.cc
|
| @@ -95,10 +95,10 @@ void WebAuthFlow::Start() {
|
| else
|
| args->AppendString("silent");
|
|
|
| - std::unique_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_;
|
| + auto event =
|
| + base::MakeUnique<Event>(events::IDENTITY_PRIVATE_ON_WEB_FLOW_REQUEST,
|
| + identity_private::OnWebFlowRequest::kEventName,
|
| + std::move(args), profile_);
|
| ExtensionSystem* system = ExtensionSystem::Get(profile_);
|
|
|
| extensions::ComponentLoader* component_loader =
|
|
|