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

Unified Diff: chrome/browser/extensions/api/signed_in_devices/signed_in_devices_manager.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/signed_in_devices/signed_in_devices_manager.cc
diff --git a/chrome/browser/extensions/api/signed_in_devices/signed_in_devices_manager.cc b/chrome/browser/extensions/api/signed_in_devices/signed_in_devices_manager.cc
index ae8a0387a6c92690fe326cf995de7efb460b0e70..2e0e9ee90806ef36489edc2ecded6034816e42b3 100644
--- a/chrome/browser/extensions/api/signed_in_devices/signed_in_devices_manager.cc
+++ b/chrome/browser/extensions/api/signed_in_devices/signed_in_devices_manager.cc
@@ -75,12 +75,10 @@ void SignedInDevicesChangeObserver::OnDeviceInfoChange() {
std::unique_ptr<base::ListValue> result =
api::signed_in_devices::OnDeviceInfoChange::Create(args);
- std::unique_ptr<Event> event(
- new Event(events::SIGNED_IN_DEVICES_ON_DEVICE_INFO_CHANGE,
- api::signed_in_devices::OnDeviceInfoChange::kEventName,
- std::move(result)));
-
- event->restrict_to_browser_context = profile_;
+ auto event = base::MakeUnique<Event>(
+ events::SIGNED_IN_DEVICES_ON_DEVICE_INFO_CHANGE,
+ api::signed_in_devices::OnDeviceInfoChange::kEventName, std::move(result),
+ profile_);
EventRouter::Get(profile_)
->DispatchEventToExtension(extension_id_, std::move(event));

Powered by Google App Engine
This is Rietveld 408576698