InstantExtended: Fix jank on custom NTP content.
This change reduces blinking/flickering jank by not hiding the preview
when transitioning from the NTP to search results, or from uncommitted
search results back to the NTP. With this, the page is solely
responsible for rendering these transitions smoothly.
BUG=
Review URL: https://chromiumcodereview.appspot.com/11293231
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167866 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/ui/browser_instant_controller.cc b/chrome/browser/ui/browser_instant_controller.cc
index 1ad6c25..f6ec5a2 100644
--- a/chrome/browser/ui/browser_instant_controller.cc
+++ b/chrome/browser/ui/browser_instant_controller.cc
@@ -152,8 +152,8 @@
void BrowserInstantController::ModeChanged(const search::Mode& old_mode,
const search::Mode& new_mode) {
- if (instant() && old_mode.is_ntp() != new_mode.is_ntp())
- instant_->OnActiveTabModeChanged(new_mode.is_ntp());
+ if (instant())
+ instant_->OnActiveTabModeChanged(new_mode);
}
////////////////////////////////////////////////////////////////////////////////