Index: chrome/browser/sync/resources/configure.html |
=================================================================== |
--- chrome/browser/sync/resources/configure.html (revision 63054) |
+++ chrome/browser/sync/resources/configure.html (working copy) |
@@ -240,6 +240,12 @@ |
} else { |
document.getElementById("appsItem").className = "sync-item-hide"; |
} |
+ if (args.sessionsRegistered) { |
+ document.getElementById("sessionsCheckbox").checked = args.syncSessions; |
+ document.getElementById("sessionsItem").className = "sync-item-show"; |
+ } else { |
+ document.getElementById("sessionsItem").className = "sync-item-hide"; |
+ } |
} |
function setEncryptionCheckboxes(args) { |
@@ -316,6 +322,7 @@ |
"syncExtensions": syncAll || f.extensionsCheckbox.checked, |
"syncTypedUrls": syncAll || f.typedUrlsCheckbox.checked, |
"syncApps": syncAll || f.appsCheckbox.checked, |
+ "syncSessions": syncAll || f.sessionsCheckbox.checked, |
"usePassphrase": document.getElementById("usePassphraseCheckbox").checked |
}); |
chrome.send("Configure", [result]); |
@@ -429,6 +436,13 @@ |
<label id="themesCheckboxLabel" name="dataTypeLabel" for="themesCheckbox" |
i18n-content="themes" i18n-values="title:themes"></label> |
</div> |
+ <!-- Sessions --> |
+ <div class="sync-item-show" id="sessionsItem"> |
+ <input id="sessionsCheckbox" name="dataTypeCheckbox" type="checkbox"> |
+ <label id="sessionsCheckboxLabel" name="dataTypeLabel" |
+ for="sessionsCheckbox" i18n-content="foreignsessions" |
+ il8n-values="title:sessions"></label> |
+ </div> |
</div> |
</div> |
</div> |