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

Unified Diff: chrome/browser/resources/user_manager/user_manager_tutorial.js

Issue 440713005: Change the title of the desktop User Manager widget. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix browser test Created 6 years, 4 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/user_manager/user_manager_tutorial.js
diff --git a/chrome/browser/resources/user_manager/user_manager_tutorial.js b/chrome/browser/resources/user_manager/user_manager_tutorial.js
index f5096b63286086772191320fe457a2d1c0d9ae67..41ae9d100edeaed23cc850e6705e7aad02281fbc 100644
--- a/chrome/browser/resources/user_manager/user_manager_tutorial.js
+++ b/chrome/browser/resources/user_manager/user_manager_tutorial.js
@@ -72,9 +72,15 @@ cr.define('cr.ui.login', function() {
handleAddUserClick_: function(e) {
chrome.send('addUser');
$('user-manager-tutorial').hidden = true;
- // Prevent further propagation of click event. Otherwise, the click event
- // handler of document object will set wallpaper to user's wallpaper when
- // there is only one existing user. See http://crbug.com/166477
+ e.stopPropagation();
+ },
+
+ /**
+ * Add a button click handler to dismiss the last tutorial bubble.
+ * @private
+ */
+ handleDismissBubbleClick_: function(e) {
+ $('user-manager-tutorial').hidden = true;
e.stopPropagation();
},
@@ -94,6 +100,8 @@ cr.define('cr.ui.login', function() {
}
$('slide-add-user').addEventListener('click',
this.handleAddUserClick_.bind(this));
+ $('dismiss-bubble-button').addEventListener('click',
+ this.handleDismissBubbleClick_.bind(this));
}
};
« no previous file with comments | « chrome/browser/resources/user_manager/user_manager_tutorial.html ('k') | chrome/browser/ui/cocoa/profiles/user_manager_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698