Index: chrome/browser/resources/sync_setup_overlay.js |
diff --git a/chrome/browser/resources/sync_setup_overlay.js b/chrome/browser/resources/sync_setup_overlay.js |
index 1ab271c780c72d3b21f27e2a90c6c449bd021bbb..4e866ca2dd4c1059f58606ca05e9b15db9c05ed7 100644 |
--- a/chrome/browser/resources/sync_setup_overlay.js |
+++ b/chrome/browser/resources/sync_setup_overlay.js |
@@ -276,7 +276,7 @@ cr.define('options', function() { |
var googlePassphrase = false; |
if (!$('sync-existing-passphrase-container').hidden) { |
// If we were prompted for an existing passphrase, use it. |
- customPassphrase = $('choose-data-types-form').passphrase.value; |
+ customPassphrase = getRequiredElement('passphrase').value; |
usePassphrase = true; |
// If we were displaying the 'enter your old google password' prompt, |
// then that means this is the user's google password. |