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

Unified Diff: chrome/browser/resources/md_user_manager/create_profile.js

Issue 2068713003: Refactors profile avatar selector into a Polymer element to use in md-settings & md-user-manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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/resources/md_user_manager/create_profile.js
diff --git a/chrome/browser/resources/md_user_manager/create_profile.js b/chrome/browser/resources/md_user_manager/create_profile.js
index 8ffd25b50100b1f57514fb7d3e0b297da157f727..2b57380798ae9ef3cf71d834a5d3c6ff115da177 100644
--- a/chrome/browser/resources/md_user_manager/create_profile.js
+++ b/chrome/browser/resources/md_user_manager/create_profile.js
@@ -374,24 +374,6 @@ Polymer({
},
/**
- * Handler for when the user clicks a new profile icon.
- * @param {!Event} event
- * @private
- */
- onIconTap_: function(event) {
- var element = Polymer.dom(event).rootTarget;
-
- if (element.nodeName == 'IMG')
- this.profileIconUrl_ = element.src;
- else if (element.dataset && element.dataset.iconUrl)
- this.profileIconUrl_ = element.dataset.iconUrl;
-
- // Button toggle state is controlled by the selected icon URL. Prevent
- // tap events from changing the toggle state.
- event.preventDefault();
- },
-
- /**
* Handles profile create/import success message pushed by the browser.
* @param {!ProfileInfo} profileInfo Details of the created/imported profile.
* @private

Powered by Google App Engine
This is Rietveld 408576698