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

Unified Diff: chrome/browser/ui/webui/ntp/new_tab_ui.h

Issue 9303005: [NTP4] Experiment for adding Chrome Web Store link to footer. (Closed)
Patch Set: moving to global browser init to avoid crash when NTP resource cache is cleared Created 8 years, 11 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/webui/ntp/new_tab_ui.h
diff --git a/chrome/browser/ui/webui/ntp/new_tab_ui.h b/chrome/browser/ui/webui/ntp/new_tab_ui.h
index 866d2b498f98bb98fe81bf1a77ecacda53fb0e67..0a008d37539473f64459a7f4f4044d677fffd215 100644
--- a/chrome/browser/ui/webui/ntp/new_tab_ui.h
+++ b/chrome/browser/ui/webui/ntp/new_tab_ui.h
@@ -30,6 +30,13 @@ class NewTabUI : public content::WebUIController,
static void RegisterUserPrefs(PrefService* prefs);
+ // Sets up any experiment in which the NTP might want to participate.
+ // The CWS footer link is one such example.
+ static void SetupFieldTrails();
+
+ // Returns whether or not the CWS footer experiment is enabled.
+ static bool IsWebStoreExperimentEnabled();
+
// Adds "url", "title", and "direction" keys on incoming dictionary, setting
// title as the url as a fallback on empty title.
static void SetURLTitleAndDirection(base::DictionaryValue* dictionary,

Powered by Google App Engine
This is Rietveld 408576698