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

Unified Diff: chrome/browser/ui/search/instant_page.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: kill some whitespace 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_page.cc
diff --git a/chrome/browser/ui/search/instant_page.cc b/chrome/browser/ui/search/instant_page.cc
index 3949861bf55d9fd928e023ae4f43d1a61457ba1e..a35d44fabfd12e9b26798bf12c2d683cb35f2479 100644
--- a/chrome/browser/ui/search/instant_page.cc
+++ b/chrome/browser/ui/search/instant_page.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/ui/search/instant_page.h"
+#include "apps/app_launcher.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/search/search.h"
#include "chrome/browser/ui/search/instant_ipc_sender.h"
@@ -57,6 +58,10 @@ void InstantPage::InitializeFonts() {
omnibox_font.GetFontSize());
}
+void InstantPage::InitializePromos() {
+ sender()->SetPromoInformation(apps::IsAppLauncherEnabled());
+}
+
InstantPage::InstantPage(Delegate* delegate, const std::string& instant_url,
bool is_incognito)
: delegate_(delegate),

Powered by Google App Engine
This is Rietveld 408576698