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

Unified Diff: chrome/browser/extensions/api/mdns/mdns_api.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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/tabs/windows_event_router.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/mdns/mdns_api.cc
diff --git a/chrome/browser/extensions/api/mdns/mdns_api.cc b/chrome/browser/extensions/api/mdns/mdns_api.cc
index 854b56ddda3177ab93d0673811f11c7a0ad31cc8..9d210dae43bfde943b259bd8c18e10d7cadaa2b9 100644
--- a/chrome/browser/extensions/api/mdns/mdns_api.cc
+++ b/chrome/browser/extensions/api/mdns/mdns_api.cc
@@ -177,7 +177,7 @@ void MDnsAPI::OnDnsSdEvent(const std::string& service_type,
auto event = base::MakeUnique<Event>(events::MDNS_ON_SERVICE_LIST,
mdns::OnServiceList::kEventName,
std::move(results), browser_context_);
- event->filter_info.SetServiceType(service_type);
+ event->filter_info.service_type = service_type;
// TODO(justinlin): To avoid having listeners without filters getting all
// events, modify API to have this event require filters.
« no previous file with comments | « no previous file | chrome/browser/extensions/api/tabs/windows_event_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698