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

Unified Diff: chrome/browser/ui/webui/md_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/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 024a91d0379b93683d0a88f10811220b2d1a6145..e3eb470336bfbb1dd6a9609d375350304fa30c8f 100644
--- a/chrome/browser/ui/webui/md_history_ui.h
+++ b/chrome/browser/ui/webui/md_history_ui.h
@@ -45,9 +45,16 @@ class MdHistoryUI : public content::WebUIController {
static bool use_test_title_;
+ // Create and get the current valid data source.
+ content::WebUIDataSource* CreateAndGetDataSource();
+
// Handler for the "menuPromoShown" message from the page. No arguments.
void HandleMenuPromoShown(const base::ListValue* args);
+ // Callback method to update sign in state in data source when profile info
+ // changed.
+ void SignInChanged(bool signed_in);
+
content::WebUIDataSource* data_source_; // weak
DISALLOW_COPY_AND_ASSIGN(MdHistoryUI);

Powered by Google App Engine
This is Rietveld 408576698