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

Unified Diff: chrome/browser/extensions/api/web_navigation/web_navigation_api_helpers.cc

Issue 2937623002: [Extensions] Simplify EventFilteringInfo (Closed)
Patch Set: karan's Created 3 years, 6 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/web_navigation/web_navigation_api_helpers.cc
diff --git a/chrome/browser/extensions/api/web_navigation/web_navigation_api_helpers.cc b/chrome/browser/extensions/api/web_navigation/web_navigation_api_helpers.cc
index 33318e52dd7081c1e7d04c468870b9b62f79003a..42d255fb71ed585e479c7b71d858167b7d6651bc 100644
--- a/chrome/browser/extensions/api/web_navigation/web_navigation_api_helpers.cc
+++ b/chrome/browser/extensions/api/web_navigation/web_navigation_api_helpers.cc
@@ -50,7 +50,7 @@ void DispatchEvent(content::BrowserContext* browser_context,
std::unique_ptr<Event> event,
const GURL& url) {
EventFilteringInfo info;
- info.SetURL(url);
+ info.url = url;
Profile* profile = Profile::FromBrowserContext(browser_context);
EventRouter* event_router = EventRouter::Get(profile);
@@ -85,7 +85,7 @@ std::unique_ptr<Event> CreateOnBeforeNavigateEvent(
navigation_handle->GetWebContents()->GetBrowserContext());
EventFilteringInfo info;
- info.SetURL(navigation_handle->GetURL());
+ info.url = navigation_handle->GetURL();
event->filter_info = info;
return event;
« no previous file with comments | « chrome/browser/extensions/api/tabs/windows_event_router.cc ('k') | chrome/browser/extensions/menu_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698