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

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

Issue 1151563005: Revert of NTP Zombie Code Slayer Part IV: Most Visited (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/webui/ntp/new_tab_ui.cc ('k') | chrome/browser/ui/webui/ntp/ntp_resource_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 211a5e1540258d45ce71e6e947056088e14dcb39..056955bca36ddbc2687b1e0d525fb2b02b0707cb 100644
--- a/chrome/browser/ui/webui/ntp/ntp_resource_cache.h
+++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache.h
@@ -44,6 +44,9 @@
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;
}
void set_should_show_other_devices_menu(bool should_show_other_devices_menu) {
should_show_other_devices_menu_ = should_show_other_devices_menu;
@@ -100,6 +103,9 @@
bool is_swipe_tracking_from_scroll_events_enabled_;
// 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.
+ bool should_show_most_visited_page_;
bool should_show_other_devices_menu_;
DISALLOW_COPY_AND_ASSIGN(NTPResourceCache);
« no previous file with comments | « chrome/browser/ui/webui/ntp/new_tab_ui.cc ('k') | chrome/browser/ui/webui/ntp/ntp_resource_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698