diff options
author | dharani@chromium.org <dharani@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-03 20:24:32 +0000 |
---|---|---|
committer | dharani@chromium.org <dharani@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-03 20:24:32 +0000 |
commit | b12b86d9a48887a9f6bfcbd3ffab408d6e3fd3b3 (patch) | |
tree | 44b3fdcdfd9858c2ac1a884181bbde6c7a245ac5 /chrome/browser/extensions/extension_event_router_forwarder.cc | |
parent | 8cca9621a858256226dfc6d7588a2fda32ad2daf (diff) | |
download | chromium_src-b12b86d9a48887a9f6bfcbd3ffab408d6e3fd3b3.zip chromium_src-b12b86d9a48887a9f6bfcbd3ffab408d6e3fd3b3.tar.gz chromium_src-b12b86d9a48887a9f6bfcbd3ffab408d6e3fd3b3.tar.bz2 |
Revert 145145 - Filtered events.
Check bug 134977 for details
Makes web_navigation events support filters, eg:
chrome.webNavigation.onBeforeCommitted.addListener(callback, {url: [{hostSuffix: 'google.com'}]});
Now callback will only be called when the event has a URL with a host suffix of google.com.
BUG=121479
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=143872
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=143874
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=143896
Review URL: https://chromiumcodereview.appspot.com/10514013
TBR=koz@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10700092
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145368 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_event_router_forwarder.cc')
-rw-r--r-- | chrome/browser/extensions/extension_event_router_forwarder.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/chrome/browser/extensions/extension_event_router_forwarder.cc b/chrome/browser/extensions/extension_event_router_forwarder.cc index 5231324..f654d12 100644 --- a/chrome/browser/extensions/extension_event_router_forwarder.cc +++ b/chrome/browser/extensions/extension_event_router_forwarder.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -114,8 +114,7 @@ void ExtensionEventRouterForwarder::CallExtensionEventRouter( if (extension_id.empty()) { profile->GetExtensionEventRouter()-> DispatchEventToRenderers( - event_name, event_args, restrict_to_profile, event_url, - extensions::EventFilteringInfo()); + event_name, event_args, restrict_to_profile, event_url); } else { profile->GetExtensionEventRouter()-> DispatchEventToExtension( |