diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-21 19:11:39 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-21 19:11:39 +0000 |
commit | eac60f73ccc4dec42784ee6237f73ec4fa69ed7a (patch) | |
tree | fc530b579733cdc737fa9b6d3b3b76ae686358f2 /chrome/browser/instant | |
parent | fde4f5840faa877d5489b28e45f6058620336c7d (diff) | |
download | chromium_src-eac60f73ccc4dec42784ee6237f73ec4fa69ed7a.zip chromium_src-eac60f73ccc4dec42784ee6237f73ec4fa69ed7a.tar.gz chromium_src-eac60f73ccc4dec42784ee6237f73ec4fa69ed7a.tar.bz2 |
Makes RLZ listen for changes to instant so that it can update at the
right time.
BUG=56259
TEST=none
Review URL: http://codereview.chromium.org/3969004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63393 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/instant')
-rw-r--r-- | chrome/browser/instant/instant_controller.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/instant/instant_controller.cc b/chrome/browser/instant/instant_controller.cc index 24c70f8..d534cef 100644 --- a/chrome/browser/instant/instant_controller.cc +++ b/chrome/browser/instant/instant_controller.cc @@ -15,6 +15,7 @@ #include "chrome/browser/search_engines/template_url_model.h" #include "chrome/browser/tab_contents/tab_contents.h" #include "chrome/common/chrome_switches.h" +#include "chrome/common/notification_service.h" #include "chrome/common/pref_names.h" #include "chrome/common/url_constants.h" @@ -84,6 +85,11 @@ void InstantController::Update(TabContents* tab_contents, } else { ScheduleUpdate(match.destination_url); } + + NotificationService::current()->Notify( + NotificationType::INSTANT_CONTROLLER_UPDATED, + Source<InstantController>(this), + NotificationService::NoDetails()); } void InstantController::SetOmniboxBounds(const gfx::Rect& bounds) { |