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

Unified Diff: chrome/browser/resources/settings/people_page/change_picture.js

Issue 2841653002: MD Settings: Fix initialization timing of browser proxy in change-picture. (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/people_page/change_picture.js
diff --git a/chrome/browser/resources/settings/people_page/change_picture.js b/chrome/browser/resources/settings/people_page/change_picture.js
index 96ad5c23a5624ef5de5e87f7a71c29fb2f049f1b..62c5b9dad7979d41948025deaa39cc9a707a9089 100644
--- a/chrome/browser/resources/settings/people_page/change_picture.js
+++ b/chrome/browser/resources/settings/people_page/change_picture.js
@@ -114,8 +114,12 @@ Polymer({
lastSelectedImageType_: '',
/** @override */
- attached: function() {
+ ready: function() {
this.browserProxy_ = settings.ChangePictureBrowserProxyImpl.getInstance();
+ },
+
+ /** @override */
+ attached: function() {
this.addWebUIListener('default-images-changed',
this.receiveDefaultImages_.bind(this));
this.addWebUIListener('selected-image-changed',
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698