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

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

Issue 2361513003: MD History: Update sign in state in data source (Closed)
Patch Set: fix promo crash 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..7330b19a9084737b6ed310a1f0c96d7641cfa76f 100644
--- a/chrome/browser/ui/webui/md_history_ui.h
+++ b/chrome/browser/ui/webui/md_history_ui.h
@@ -7,6 +7,7 @@
#include "base/gtest_prod_util.h"
#include "base/macros.h"
+#include "base/memory/weak_ptr.h"
#include "content/public/browser/web_ui_controller.h"
#include "ui/base/layout.h"
@@ -48,8 +49,14 @@ class MdHistoryUI : public content::WebUIController {
// 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
+ base::WeakPtrFactory<MdHistoryUI> weak_ptr_factory_;
+
DISALLOW_COPY_AND_ASSIGN(MdHistoryUI);
};

Powered by Google App Engine
This is Rietveld 408576698