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

Unified Diff: chrome/browser/resources/md_history/app.js

Issue 2361513003: MD History: Update sign in state in data source (Closed)
Patch Set: move 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
« no previous file with comments | « chrome/browser/resources/md_history/app.html ('k') | chrome/browser/resources/md_history/app.crisper.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_history/app.js
diff --git a/chrome/browser/resources/md_history/app.js b/chrome/browser/resources/md_history/app.js
index 40b41e212c7d76e5d4366b2c01529d1df0f2a28f..730ff7e0f8df5ed2bc22725f490c70eadd30e955 100644
--- a/chrome/browser/resources/md_history/app.js
+++ b/chrome/browser/resources/md_history/app.js
@@ -22,7 +22,10 @@ cr.define('md_history', function() {
Polymer({
is: 'history-app',
- behaviors: [Polymer.IronScrollTargetBehavior],
+ behaviors: [
+ Polymer.IronScrollTargetBehavior,
+ WebUIListenerBehavior,
+ ],
properties: {
// Used to display notices for profile sign-in status.
@@ -105,6 +108,12 @@ Polymer({
document.addEventListener('command', this.onCommand_.bind(this));
},
+ /** @override */
+ attached: function() {
+ this.addWebUIListener('sign-in-state-updated',
+ this.updateSignInState.bind(this));
+ },
+
onFirstRender: function() {
setTimeout(function() {
chrome.send(
« no previous file with comments | « chrome/browser/resources/md_history/app.html ('k') | chrome/browser/resources/md_history/app.crisper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698