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

Unified Diff: chrome/browser/sync/resources/configure.html

Issue 3767009: UI changes to support syncing foreign sessions. Changes were largely made to ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Rebased + comments 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/options/sync_options.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « chrome/browser/resources/options/sync_options.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698