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

Side by Side Diff: chrome/browser/resources/options/personal_options.js

Issue 3149025: dom-ui options: Remove special casing for Mac passwords, all platforms should... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Rebase to r56875. Created 10 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 cr.define('options', function() { 5 cr.define('options', function() {
6 6
7 var OptionsPage = options.OptionsPage; 7 var OptionsPage = options.OptionsPage;
8 8
9 // 9 //
10 // PersonalOptions class 10 // PersonalOptions class
(...skipping 28 matching lines...) Expand all
39 if(event.value) { 39 if(event.value) {
40 chrome.send('getSyncStatus'); 40 chrome.send('getSyncStatus');
41 $('synced-controls').classList.remove('hidden'); 41 $('synced-controls').classList.remove('hidden');
42 $('not-synced-controls').classList.add('hidden'); 42 $('not-synced-controls').classList.add('hidden');
43 } else { 43 } else {
44 $('synced-controls').classList.add('hidden'); 44 $('synced-controls').classList.add('hidden');
45 $('not-synced-controls').classList.remove('hidden'); 45 $('not-synced-controls').classList.remove('hidden');
46 } 46 }
47 }); 47 });
48 48
49 49 $('showpasswords').onclick = function(event) {
50 if(cr.isMac) { 50 PasswordsExceptions.load();
51 $('showpasswords').onclick = function(event) { 51 OptionsPage.showPageByName('passwordsExceptions');
52 //TODO(sargrass): Add the Mac implementation 52 OptionsPage.showTab($('passwords-nav-tab'));
53 } 53 };
54 } else {
55 $('showpasswords').onclick = function(event) {
56 PasswordsExceptions.load();
57 OptionsPage.showPageByName('passwordsExceptions');
58 OptionsPage.showTab($('passwords-nav-tab'));
59 };
60 }
61 54
62 $('autofill_options').onclick = function(event) { 55 $('autofill_options').onclick = function(event) {
63 OptionsPage.showPageByName('autoFillOptions'); 56 OptionsPage.showPageByName('autoFillOptions');
64 }; 57 };
65 58
66 if (!cr.isChromeOS) { 59 if (!cr.isChromeOS) {
67 $('stop-sync').onclick = function(event) { 60 $('stop-sync').onclick = function(event) {
68 OptionsPage.showOverlay('stopSyncingOverlay'); 61 OptionsPage.showOverlay('stopSyncingOverlay');
69 }; 62 };
70 $('import_data').onclick = function(event) { 63 $('import_data').onclick = function(event) {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 PersonalOptions.getInstance().syncStatusCallback_(statusString); 97 PersonalOptions.getInstance().syncStatusCallback_(statusString);
105 }; 98 };
106 99
107 // Export 100 // Export
108 return { 101 return {
109 PersonalOptions: PersonalOptions 102 PersonalOptions: PersonalOptions
110 }; 103 };
111 104
112 }); 105 });
113 106
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698