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

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

Issue 24940002: Send ChromeViewMsg_SearchBoxSetSuggestionToPrefetch IPC message from SearchIPCRouter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 3 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 6b430cd0744f1022b20ff5f35b19739651ccf40e..9fffec6b5c909c9f57a392e6318726530037b15f 100644
--- a/chrome/browser/ui/search/instant_controller.cc
+++ b/chrome/browser/ui/search/instant_controller.cc
@@ -124,8 +124,10 @@ void InstantController::SetOmniboxBounds(const gfx::Rect& bounds) {
void InstantController::SetSuggestionToPrefetch(
const InstantSuggestion& suggestion) {
- if (instant_tab_ && search_mode_.is_search())
- instant_tab_->sender()->SetSuggestionToPrefetch(suggestion);
+ if (instant_tab_ && search_mode_.is_search()) {
+ SearchTabHelper::FromWebContents(instant_tab_->contents())->
+ SetSuggestionToPrefetch(suggestion);
+ }
}
void InstantController::ToggleVoiceSearch() {

Powered by Google App Engine
This is Rietveld 408576698