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

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

Issue 2361513003: MD History: Update sign in state in data source (Closed)
Patch Set: try another approach 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_login_handler.h
diff --git a/chrome/browser/ui/webui/history_login_handler.h b/chrome/browser/ui/webui/history_login_handler.h
index f10ab5259490ca892b6ede7097ea9e3550d082eb..937e8c7e30145bbe44023951b7f2e2f667e003a7 100644
--- a/chrome/browser/ui/webui/history_login_handler.h
+++ b/chrome/browser/ui/webui/history_login_handler.h
@@ -12,10 +12,14 @@
class ProfileInfoWatcher;
+namespace content {
+class WebUIDataSource;
+}
+
// The handler for login-related messages from chrome://history.
class HistoryLoginHandler : public content::WebUIMessageHandler {
public:
- HistoryLoginHandler();
+ explicit HistoryLoginHandler(content::WebUIDataSource* data_source);
~HistoryLoginHandler() override;
// WebUIMessageHandler implementation.
@@ -35,6 +39,8 @@ class HistoryLoginHandler : public content::WebUIMessageHandler {
// changes).
std::unique_ptr<ProfileInfoWatcher> profile_info_watcher_;
+ content::WebUIDataSource* data_source_;
+
DISALLOW_COPY_AND_ASSIGN(HistoryLoginHandler);
};

Powered by Google App Engine
This is Rietveld 408576698