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

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

Issue 2361513003: MD History: Update sign in state in data source (Closed)
Patch Set: add get method 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/history_ui.h
diff --git a/chrome/browser/ui/webui/history_ui.h b/chrome/browser/ui/webui/history_ui.h
index 13b012cde9ad1b887ad29a83066a495ad4377469..678d653d4ddfe2e889bdd425c40281c1aa8d42b6 100644
--- a/chrome/browser/ui/webui/history_ui.h
+++ b/chrome/browser/ui/webui/history_ui.h
@@ -15,6 +15,10 @@ namespace base {
class RefCountedMemory;
}
+namespace content {
+class WebUIDataSource;
+}
+
class HistoryUI : public content::WebUIController {
public:
explicit HistoryUI(content::WebUI* web_ui);
@@ -24,6 +28,13 @@ class HistoryUI : public content::WebUIController {
ui::ScaleFactor scale_factor);
private:
+ // Create and get the current valid data source.
+ content::WebUIDataSource* CreateAndGetDataSource();
+
+ // Callback method to update sign in state in data source when profile info
+ // changed.
+ void SignInChanged(bool signed_in);
+
DISALLOW_COPY_AND_ASSIGN(HistoryUI);
};

Powered by Google App Engine
This is Rietveld 408576698