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

Unified Diff: chrome/browser/extensions/api/preference/preference_helpers.cc

Issue 11440004: Remove deprecated extension EventRouter APIs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile Created 8 years 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/preference/preference_helpers.cc
diff --git a/chrome/browser/extensions/api/preference/preference_helpers.cc b/chrome/browser/extensions/api/preference/preference_helpers.cc
index e9f95b04ce1cd6907d9326a0b6d51e27fe17b05f..7a7af9644dadea7308bebae2cc65bfd7c662e030 100644
--- a/chrome/browser/extensions/api/preference/preference_helpers.cc
+++ b/chrome/browser/extensions/api/preference/preference_helpers.cc
@@ -128,9 +128,9 @@ void DispatchEventToExtensions(
}
scoped_ptr<ListValue> args_copy(args->DeepCopy());
- router->DispatchEventToExtension(
- extension_id, event_name, args_copy.Pass(), restrict_to_profile,
- GURL());
+ scoped_ptr<Event> event(new Event(event_name, args_copy.Pass()));
+ event->restrict_to_profile = restrict_to_profile;
+ router->DispatchEventToExtension(extension_id, event.Pass());
}
}
}
« no previous file with comments | « chrome/browser/extensions/api/omnibox/omnibox_api.cc ('k') | chrome/browser/extensions/api/processes/processes_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698