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

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

Issue 13926002: Always show the NTP apps page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 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/ntp_resource_cache.h
diff --git a/chrome/browser/ui/webui/ntp/ntp_resource_cache.h b/chrome/browser/ui/webui/ntp/ntp_resource_cache.h
index b30b41fc74ea6ca40e1abb218a60fb6c4a9da0d9..e52f4f80bc88052377ca5531bd0c01d74acf1f35 100644
--- a/chrome/browser/ui/webui/ntp/ntp_resource_cache.h
+++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache.h
@@ -31,6 +31,9 @@ class NTPResourceCache : public content::NotificationObserver,
base::RefCountedMemory* GetNewTabHTML(bool is_incognito);
base::RefCountedMemory* GetNewTabCSS(bool is_incognito);
+ void set_should_show_apps_page(bool should_show_apps_page) {
+ should_show_apps_page_ = should_show_apps_page;
+ }
void set_should_show_most_visited_page(bool should_show_most_visited_page) {
should_show_most_visited_page_ = should_show_most_visited_page;
}
@@ -81,7 +84,7 @@ class NTPResourceCache : public content::NotificationObserver,
// Set based on platform_util::IsSwipeTrackingFromScrollEventsEnabled.
bool is_swipe_tracking_from_scroll_events_enabled_;
- // Set based on extensions::IsAppLauncherEnabled.
+ // Set based on NewTabUI::ShouldShowApps.
bool should_show_apps_page_;
// The next three all default to true and can be manually set, e.g., by the
// chrome://apps page.

Powered by Google App Engine
This is Rietveld 408576698