diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-15 20:45:59 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-15 20:45:59 +0000 |
commit | 36d5e559795e48dec168fa824129aa55b5b165bc (patch) | |
tree | c7b3a60a0b5f513ae30893046a750dbd3ae91333 /chrome/browser/instant/instant_controller.cc | |
parent | 496caaefd06cb83db972dbf323abdd596a4e5b26 (diff) | |
download | chromium_src-36d5e559795e48dec168fa824129aa55b5b165bc.zip chromium_src-36d5e559795e48dec168fa824129aa55b5b165bc.tar.gz chromium_src-36d5e559795e48dec168fa824129aa55b5b165bc.tar.bz2 |
Makes the current page dim out when transitioning to instant preview.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/4932001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66164 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/instant/instant_controller.cc')
-rw-r--r-- | chrome/browser/instant/instant_controller.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/instant/instant_controller.cc b/chrome/browser/instant/instant_controller.cc index 151308c..001e238 100644 --- a/chrome/browser/instant/instant_controller.cc +++ b/chrome/browser/instant/instant_controller.cc @@ -93,6 +93,9 @@ void InstantController::Update(TabContents* tab_contents, if (!loader_manager_.get()) loader_manager_.reset(new InstantLoaderManager(this)); + if (!is_active_) + delegate_->PrepareForInstant(); + if (ShouldUpdateNow(template_url_id, match.destination_url)) { UpdateLoader(template_url, match.destination_url, match.transition, user_text, suggested_text); |