Index: chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.js |
diff --git a/chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.js b/chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.js |
index aa01c860669505649e8f38c54d4eabdbe5f15f20..551a7ec601f5d574d3700e19055ed70cd3d18c6e 100644 |
--- a/chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.js |
+++ b/chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.js |
@@ -219,11 +219,16 @@ cr.define('oobe', function() { |
var theStep = this.steps_[i]; |
var active = (theStep.name == step); |
$('oauth-enroll-step-' + theStep.name).hidden = !active; |
- if (active && theStep.button) { |
+ if (theStep.button) { |
var button = $('oauth-enroll-' + theStep.button + '-button'); |
- button.hidden = false; |
- if (theStep.focusButton) |
- button.focus(); |
+ button.autofocus = false; |
+ if (active) { |
+ button.hidden = false; |
+ if (theStep.focusButton) { |
+ button.focus(); |
+ button.autofocus = true; |
+ } |
+ } |
} |
} |
}, |