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

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

Issue 2898383002: [Extensions] Make Event::restrict_to_browser_context const. (Closed)
Patch Set: sync @tott Created 3 years, 7 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/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 =

Powered by Google App Engine
This is Rietveld 408576698