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

Side by Side Diff: chrome/browser/sync/resources/passphrase.html

Issue 3792007: Fix some problems with the ENTER_PASSPHRASE state in sync setup.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <html i18n-values="dir:textdirection;"> 1 <html i18n-values="dir:textdirection;">
2 <head> 2 <head>
3 <title></title> 3 <title></title>
4 <style type="text/css"> 4 <style type="text/css">
5 body { 5 body {
6 line-height: 1.5em; 6 line-height: 1.5em;
7 background: #FFFFFF; 7 background: #FFFFFF;
8 font-size: 11pt; 8 font-size: 11pt;
9 } 9 }
10 html[os='mac'] body { 10 html[os='mac'] body {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 function switchToMode(mode) { 73 function switchToMode(mode) {
74 if (mode == "new") { 74 if (mode == "new") {
75 document.getElementById("enter-passphrase").style.display = "none"; 75 document.getElementById("enter-passphrase").style.display = "none";
76 document.getElementById("gaia-passphrase").style.display = "none"; 76 document.getElementById("gaia-passphrase").style.display = "none";
77 document.getElementById("new-passphrase").style.display = "block"; 77 document.getElementById("new-passphrase").style.display = "block";
78 } else if (mode =="enter") { 78 } else if (mode =="enter") {
79 document.getElementById("enter-passphrase").style.display = "block"; 79 document.getElementById("enter-passphrase").style.display = "block";
80 document.getElementById("gaia-passphrase").style.display = "none"; 80 document.getElementById("gaia-passphrase").style.display = "none";
81 document.getElementById("new-passphrase").style.display = "none"; 81 document.getElementById("new-passphrase").style.display = "none";
82 } 82 } else if (mode == "gaia") {
83 document.getElementById("enter-passphrase").style.display = "none";
84 document.getElementById("gaia-passphrase").style.display = "block";
85 document.getElementById("new-passphrase").style.display = "none";
86 }
83 } 87 }
84 88
85 function sendPassphraseAndClose() { 89 function sendPassphraseAndClose() {
86 var f = document.getElementById("passphraseForm"); 90 var f = document.getElementById("passphraseForm");
87 var result = JSON.stringify({"passphrase": f.passphrase.value}); 91 var result = JSON.stringify({"passphrase": f.passphrase.value});
88 chrome.send("Passphrase", [result]); 92 chrome.send("Passphrase", [result]);
89 } 93 }
90 </script> 94 </script>
91 </head> 95 </head>
92 <body i18n-values=".style.fontFamily:fontfamily" 96 <body i18n-values=".style.fontFamily:fontfamily"
(...skipping 29 matching lines...) Expand all
122 </div> 126 </div>
123 127
124 <div class="sync-footer"> 128 <div class="sync-footer">
125 <input id="okButton" type="submit" i18n-values="value:ok" /> 129 <input id="okButton" type="submit" i18n-values="value:ok" />
126 <input id="cancelButton" type="button" i18n-values="value:cancel" 130 <input id="cancelButton" type="button" i18n-values="value:cancel"
127 onclick='chrome.send("DialogClose", [""])' /> 131 onclick='chrome.send("DialogClose", [""])' />
128 </div> 132 </div>
129 </form> 133 </form>
130 </body> 134 </body>
131 </html> 135 </html>
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | chrome/browser/sync/resources/setting_up.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698