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

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

Issue 17303003: InstantExtended: hook up InstantTab in incognito. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile errors. 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
« no previous file with comments | « chrome/browser/ui/search/instant_overlay.h ('k') | chrome/browser/ui/search/instant_page.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/search/instant_overlay.cc
diff --git a/chrome/browser/ui/search/instant_overlay.cc b/chrome/browser/ui/search/instant_overlay.cc
index 66569644bd7397693b0638bf8050cc1c437597dc..c03eb05b60f9029c021f39863a8d7e84989fd28d 100644
--- a/chrome/browser/ui/search/instant_overlay.cc
+++ b/chrome/browser/ui/search/instant_overlay.cc
@@ -40,8 +40,9 @@ InstantOverlay* InstantOverlay::FromWebContents(
}
InstantOverlay::InstantOverlay(InstantController* controller,
- const std::string& instant_url)
- : InstantPage(controller, instant_url),
+ const std::string& instant_url,
+ bool is_incognito)
+ : InstantPage(controller, instant_url, is_incognito),
loader_(this),
is_stale_(false),
is_pointer_down_from_activate_(false) {
@@ -76,7 +77,7 @@ void InstantOverlay::Update(const string16& text,
size_t selection_end,
bool verbatim) {
last_navigation_ = history::HistoryAddPageArgs();
- InstantPage::Update(text, selection_start, selection_end, verbatim);
+ sender()->Update(text, selection_start, selection_end, verbatim);
}
bool InstantOverlay::ShouldProcessRenderViewCreated() {
« no previous file with comments | « chrome/browser/ui/search/instant_overlay.h ('k') | chrome/browser/ui/search/instant_page.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698