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

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

Issue 17699006: Pipe a bit down to the InstantExtended new tab page javascript API for whether or not the app launc… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update comment 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 18ca74516879b527a6e8efeb77542faecfa16796..ad7e7853861d700ca1941098af915bff65a53f7c 100644
--- a/chrome/browser/ui/search/instant_controller.cc
+++ b/chrome/browser/ui/search/instant_controller.cc
@@ -1249,6 +1249,7 @@ void InstantController::InstantPageRenderViewCreated(
ntp_->sender()->SetDisplayInstantResults(instant_enabled_);
ntp_->sender()->SetOmniboxBounds(omnibox_bounds_);
ntp_->InitializeFonts();
+ ntp_->InitializePromos();
} else {
NOTREACHED();
}
@@ -1688,6 +1689,7 @@ void InstantController::UpdateInfoForInstantTab() {
instant_service->UpdateThemeInfo();
instant_tab_->InitializeFonts();
+ instant_tab_->InitializePromos();
UpdateMostVisitedItems();
instant_tab_->sender()->FocusChanged(omnibox_focus_state_,
omnibox_focus_change_reason_);
« no previous file with comments | « no previous file | chrome/browser/ui/search/instant_ipc_sender.h » ('j') | chrome/browser/ui/search/instant_page.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698