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

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

Issue 17303003: InstantExtended: hook up InstantTab in incognito. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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
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 f4ba1a4f35081ff5ea043d8caccae9fe3e56a8f6..1973b79c528e12ee80421373e62ec534d926d303 100644
--- a/chrome/browser/ui/search/instant_controller.cc
+++ b/chrome/browser/ui/search/instant_controller.cc
@@ -1634,10 +1634,7 @@ InstantController::ShouldSwitchToLocalOverlay() const {
}
void InstantController::ResetInstantTab() {
- // Do not wire up the InstantTab in Incognito, to prevent it from sending data
- // to the page.
- if (!search_mode_.is_origin_default() &&
- !browser_->profile()->IsOffTheRecord()) {
+ if (!search_mode_.is_origin_default()) {
content::WebContents* active_tab = browser_->GetActiveWebContents();
if (!instant_tab_ || active_tab != instant_tab_->contents()) {
instant_tab_.reset(new InstantTab(this));

Powered by Google App Engine
This is Rietveld 408576698