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

Unified Diff: chrome/browser/resources/sync_confirmation/sync_confirmation.js

Issue 1949613003: Clear initial focus in Sync Confirmation dialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unit tests Created 4 years, 7 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 | chrome/browser/ui/webui/signin/sync_confirmation_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/sync_confirmation/sync_confirmation.js
diff --git a/chrome/browser/resources/sync_confirmation/sync_confirmation.js b/chrome/browser/resources/sync_confirmation/sync_confirmation.js
index f3273fb28b5d0ddf9adfc2cc60c941d77ac988ab..2e37139c2a94e97b84aabac698b7897c9281eecd 100644
--- a/chrome/browser/resources/sync_confirmation/sync_confirmation.js
+++ b/chrome/browser/resources/sync_confirmation/sync_confirmation.js
@@ -26,6 +26,10 @@ cr.define('sync.confirmation', function() {
chrome.send('initializedWithSize', [document.body.scrollHeight]);
}
+ function clearFocus() {
+ document.activeElement.blur();
+ }
+
function setUserImageURL(url) {
$('profile-picture').src = url;
}
@@ -46,6 +50,7 @@ cr.define('sync.confirmation', function() {
}
return {
+ clearFocus: clearFocus,
initialize: initialize,
setUserImageURL: setUserImageURL
};
« no previous file with comments | « no previous file | chrome/browser/ui/webui/signin/sync_confirmation_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698