Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5885)

Unified Diff: chrome/browser/ui/search/instant_controller.cc

Issue 13030009: Instant: Don't use Instant NTP in incognito. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Gah Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/search/instant_controller.cc
diff --git a/chrome/browser/ui/search/instant_controller.cc b/chrome/browser/ui/search/instant_controller.cc
index 8050a7eb22f06d0e7b383a22b6a60b9c943c1585..0756a2fa349da616e93620c5c341f25ffd5ada20 100644
--- a/chrome/browser/ui/search/instant_controller.cc
+++ b/chrome/browser/ui/search/instant_controller.cc
@@ -1279,7 +1279,8 @@ void InstantController::OmniboxLostFocus(gfx::NativeView view_gaining_focus) {
void InstantController::ResetNTP(bool ignore_blacklist) {
ntp_.reset();
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.
return;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698