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

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

Issue 6489007: Always use ProfileSyncService::ShowErrorUI to handle error links. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 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 | « chrome/browser/dom_ui/options/personal_options_handler.cc ('k') | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // State variables. 9 // State variables.
10 var syncEnabled = false; 10 var syncEnabled = false;
(...skipping 14 matching lines...) Expand all
25 // Inherit PersonalOptions from OptionsPage. 25 // Inherit PersonalOptions from OptionsPage.
26 __proto__: options.OptionsPage.prototype, 26 __proto__: options.OptionsPage.prototype,
27 27
28 // Initialize PersonalOptions page. 28 // Initialize PersonalOptions page.
29 initializePage: function() { 29 initializePage: function() {
30 // Call base class implementation to start preference initialization. 30 // Call base class implementation to start preference initialization.
31 OptionsPage.prototype.initializePage.call(this); 31 OptionsPage.prototype.initializePage.call(this);
32 32
33 var self = this; 33 var self = this;
34 $('sync-action-link').onclick = function(event) { 34 $('sync-action-link').onclick = function(event) {
35 chrome.send('showSyncLoginDialog'); 35 chrome.send('showSyncActionDialog');
36 }; 36 };
37 $('start-stop-sync').onclick = function(event) { 37 $('start-stop-sync').onclick = function(event) {
38 if (self.syncSetupCompleted) 38 if (self.syncSetupCompleted)
39 self.showStopSyncingOverlay_(); 39 self.showStopSyncingOverlay_();
40 else 40 else
41 chrome.send('showSyncLoginDialog'); 41 chrome.send('showSyncLoginDialog');
42 }; 42 };
43 $('customize-sync').onclick = function(event) { 43 $('customize-sync').onclick = function(event) {
44 chrome.send('showCustomizeSyncDialog'); 44 chrome.send('showCustomizeSyncDialog');
45 }; 45 };
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 PersonalOptions.getInstance()[name + '_'](value); 196 PersonalOptions.getInstance()[name + '_'](value);
197 }; 197 };
198 }); 198 });
199 199
200 // Export 200 // Export
201 return { 201 return {
202 PersonalOptions: PersonalOptions 202 PersonalOptions: PersonalOptions
203 }; 203 };
204 204
205 }); 205 });
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/options/personal_options_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698