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

Unified Diff: chrome/browser/ui/webui/md_history_ui.h

Issue 2280513002: MD History: promote menu button to show clear browsing data in narrow mode (Closed)
Patch Set: merge Created 4 years, 3 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/md_history_ui.h
diff --git a/chrome/browser/ui/webui/md_history_ui.h b/chrome/browser/ui/webui/md_history_ui.h
index 2d025de2698b28aec0bf3428fea3ff5db1c8b0b5..2b99bac9ee3c743d1b8d020dd1019f90c48eae17 100644
--- a/chrome/browser/ui/webui/md_history_ui.h
+++ b/chrome/browser/ui/webui/md_history_ui.h
@@ -12,9 +12,18 @@
class Profile;
namespace base {
+class ListValue;
class RefCountedMemory;
}
+namespace content {
+class WebUIDataSource;
+}
+
+namespace user_prefs {
+class PrefRegistrySyncable;
+}
+
class MdHistoryUI : public content::WebUIController {
public:
explicit MdHistoryUI(content::WebUI* web_ui);
@@ -25,10 +34,17 @@ class MdHistoryUI : public content::WebUIController {
// Reset the current list of features and explicitly set MD History enabled.
static void SetEnabledForTesting(bool enabled);
+ static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
+
static base::RefCountedMemory* GetFaviconResourceBytes(
ui::ScaleFactor scale_factor);
private:
+ // Handler for the "menuPromoShown" message from the page. No arguments.
+ void HandleMenuPromoShown(const base::ListValue* args);
+
+ content::WebUIDataSource* data_source_; // weak
+
DISALLOW_COPY_AND_ASSIGN(MdHistoryUI);
};

Powered by Google App Engine
This is Rietveld 408576698