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

Side by Side Diff: chrome/browser/ui/webui/ntp/new_tab_ui.h

Issue 10332049: remove ntp app install hint (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync it Created 8 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_UI_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 14 matching lines...) Expand all
25 25
26 // The WebContents used for the New Tab page. 26 // The WebContents used for the New Tab page.
27 class NewTabUI : public content::WebUIController, 27 class NewTabUI : public content::WebUIController,
28 public content::NotificationObserver { 28 public content::NotificationObserver {
29 public: 29 public:
30 explicit NewTabUI(content::WebUI* web_ui); 30 explicit NewTabUI(content::WebUI* web_ui);
31 virtual ~NewTabUI(); 31 virtual ~NewTabUI();
32 32
33 static void RegisterUserPrefs(PrefService* prefs); 33 static void RegisterUserPrefs(PrefService* prefs);
34 34
35 // Sets up any experiment in which the NTP might want to participate.
36 // The CWS footer link is one such example.
37 static void SetupFieldTrials();
38
39 // Returns whether or not to show the link to the CWS in the footer.
40 static bool ShouldShowWebStoreFooterLink();
41
42 // Returns whether or not to show the app install hint.
43 static bool ShouldShowAppInstallHint();
44
45 // Returns whether or not to show apps pages. 35 // Returns whether or not to show apps pages.
46 static bool ShouldShowApps(); 36 static bool ShouldShowApps();
47 37
48 // Returns whether or not the "suggestions links page" is enabled. 38 // Returns whether or not the "suggestions links page" is enabled.
49 static bool IsSuggestionsPageEnabled(); 39 static bool IsSuggestionsPageEnabled();
50 40
51 // Adds "url", "title", and "direction" keys on incoming dictionary, setting 41 // Adds "url", "title", and "direction" keys on incoming dictionary, setting
52 // title as the url as a fallback on empty title. 42 // title as the url as a fallback on empty title.
53 static void SetURLTitleAndDirection(base::DictionaryValue* dictionary, 43 static void SetURLTitleAndDirection(base::DictionaryValue* dictionary,
54 const string16& title, 44 const string16& title,
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 static const int current_pref_version_ = 3; 124 static const int current_pref_version_ = 3;
135 125
136 // If the sync promo NTP bubble is being shown. 126 // If the sync promo NTP bubble is being shown.
137 bool showing_sync_bubble_; 127 bool showing_sync_bubble_;
138 128
139 PrefChangeRegistrar pref_change_registrar_; 129 PrefChangeRegistrar pref_change_registrar_;
140 130
141 DISALLOW_COPY_AND_ASSIGN(NewTabUI); 131 DISALLOW_COPY_AND_ASSIGN(NewTabUI);
142 }; 132 };
143 133
144 extern const char kWebStoreLinkExperiment[];
145
146 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_UI_H_ 134 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/ntp/new_tab_page_handler.cc ('k') | chrome/browser/ui/webui/ntp/new_tab_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698