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

Unified Diff: chrome/browser/resources/options/personal_options.js

Issue 2819046: Make the personal stuff page viewable. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Remove the two old line for sync in gypi Created 10 years, 5 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/personal_options.html ('k') | chrome/browser/resources/options/pref_ui.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options/personal_options.js
diff --git a/chrome/browser/resources/options/personal_options.js b/chrome/browser/resources/options/personal_options.js
index b7b48c918f70dfabce32f7debd39c50f69fdfb1b..d22c4da858056757c2ab0035f6d65096bc5a387c 100644
--- a/chrome/browser/resources/options/personal_options.js
+++ b/chrome/browser/resources/options/personal_options.js
@@ -21,6 +21,51 @@ PersonalOptions.prototype = {
// Call base class implementation to starts preference initialization.
OptionsPage.prototype.initializePage.call(this);
- // TODO(csilv): add any needed initialization here or delete this method.
- }
+
+ // Listen to pref changes.
+ Preferences.getInstance().addEventListener('sync.has_setup_completed',
+ function(event) {
+ if(event.value){
+ $('text-when-synced').style.display = 'block';
+ $('button-when-synced').style.display = 'block';
+ }
+ else{
+ $('text-when-not-synced').style.display = 'block';
+ $('button-when-not-synced').style.display = 'block';
+ }
+ });
+
+ $('sync-customize').onclick = function(event){
+ OptionsPage.showPageByName('sync');
+ };
+
+ $('showpasswords').onclick = function(event){
+ //TODO(sargrass): Show passwords dialog here.
+ };
+
+ $('autofill_options').onclick = function(event){
+ //TODO(sargrass): Show autofill dialog here.
+ };
+
+ $('import_data').onclick = function(event){
+ //TODO(sargrass): Show import_data dialog here.
+ };
+
+ if(navigator.platform.match(/linux|BSD/i)){
+ $('themes_GTK_button').onclick = function(event){
+ //TODO(sargrass): Show themes GTK dialog here.
+ };
+
+ $('themes_set_classic').onclick = function(event){
+ //TODO(sargrass): Show themes set classic dialog here.
+ };
+ }
+
+ if(navigator.platform.match(/Mac|Win|CrOS/i)){
+ $('themes_reset').onclick = function(event){
+ //TODO(sargrass): Show themes reset dialog here.
+ };
+ }
+
+ },
};
« no previous file with comments | « chrome/browser/resources/options/personal_options.html ('k') | chrome/browser/resources/options/pref_ui.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698