diff options
author | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-07 07:48:02 +0000 |
---|---|---|
committer | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-07 07:48:02 +0000 |
commit | 01f7a80416e36be6e5605b85646d0b7b8395a8b6 (patch) | |
tree | d0469815a4d2e014a54669c2e08f9afaa9e990f6 /chrome/browser/extensions/api/cookies/cookies_api.cc | |
parent | 3bb6472100f89924f9fb6a4f794a06539e3bfc35 (diff) | |
download | chromium_src-01f7a80416e36be6e5605b85646d0b7b8395a8b6.zip chromium_src-01f7a80416e36be6e5605b85646d0b7b8395a8b6.tar.gz chromium_src-01f7a80416e36be6e5605b85646d0b7b8395a8b6.tar.bz2 |
Remove deprecated extension EventRouter APIs.
BUG=163246
TBR=tommi@chromium.org
TBR=sky@chromium.org
TBR=dmazzoni@chromium.org
Review URL: https://chromiumcodereview.appspot.com/11440004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171719 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/api/cookies/cookies_api.cc')
-rw-r--r-- | chrome/browser/extensions/api/cookies/cookies_api.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/extensions/api/cookies/cookies_api.cc b/chrome/browser/extensions/api/cookies/cookies_api.cc index 30ac29d..f5e10fd 100644 --- a/chrome/browser/extensions/api/cookies/cookies_api.cc +++ b/chrome/browser/extensions/api/cookies/cookies_api.cc @@ -132,8 +132,10 @@ void CookiesEventRouter::DispatchEvent( extensions::ExtensionSystem::Get(profile)->event_router() : NULL; if (!router) return; - router->DispatchEventToRenderers(event_name, event_args.Pass(), profile, - cookie_domain); + scoped_ptr<Event> event(new Event(event_name, event_args.Pass())); + event->restrict_to_profile = profile; + event->event_url = cookie_domain; + router->BroadcastEvent(event.Pass()); } bool CookiesFunction::ParseUrl(const std::string& url_string, GURL* url, |