Commit e5be3bf8 authored by sreeram@chromium.org's avatar sreeram@chromium.org

Instant: Don't use Instant NTP in incognito.

BUG=223669
R=shishir@chromium.org
TEST=See bug.

Review URL: https://codereview.chromium.org/13030009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190517 0039d316-1c4b-4281-b951-d872f2087c98
parent ff035877
...@@ -1279,7 +1279,8 @@ void InstantController::OmniboxLostFocus(gfx::NativeView view_gaining_focus) { ...@@ -1279,7 +1279,8 @@ void InstantController::OmniboxLostFocus(gfx::NativeView view_gaining_focus) {
void InstantController::ResetNTP(bool ignore_blacklist) { void InstantController::ResetNTP(bool ignore_blacklist) {
ntp_.reset(); ntp_.reset();
std::string instant_url; std::string instant_url;
if (!GetInstantURL(browser_->profile(), ignore_blacklist, &instant_url)) { if (browser_->profile()->IsOffTheRecord() ||
!GetInstantURL(browser_->profile(), ignore_blacklist, &instant_url)) {
// TODO(sreeram|samarth): use local ntp here once available. // TODO(sreeram|samarth): use local ntp here once available.
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment