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

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: 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
« no previous file with comments | « chrome/browser/ui/search/instant_page.h ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
Jered 2013/06/25 22:12:23 This seems to be set based on a pref. But it looks
David Black 2013/06/25 22:40:42 Eh? Where are you seeing that it's obsolete? IsA
+}
+
InstantPage::InstantPage(Delegate* delegate, const std::string& instant_url,
bool is_incognito)
: delegate_(delegate),
« no previous file with comments | « chrome/browser/ui/search/instant_page.h ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698