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

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

Issue 339023003: Make 'Disconnect from google account' dialog box shows correct message (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Version 0 Created 6 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/resources/options/manage_profile_overlay.html » ('j') | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 var OptionsPage = options.OptionsPage; 6 var OptionsPage = options.OptionsPage;
7 var ArrayDataModel = cr.ui.ArrayDataModel; 7 var ArrayDataModel = cr.ui.ArrayDataModel;
8 var RepeatingButton = cr.ui.RepeatingButton; 8 var RepeatingButton = cr.ui.RepeatingButton;
9 var HotwordSearchSettingIndicator = options.HotwordSearchSettingIndicator; 9 var HotwordSearchSettingIndicator = options.HotwordSearchSettingIndicator;
10 10
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 } 116 }
117 117
118 // Sync (Sign in) section. 118 // Sync (Sign in) section.
119 this.updateSyncState_(loadTimeData.getValue('syncData')); 119 this.updateSyncState_(loadTimeData.getValue('syncData'));
120 120
121 $('start-stop-sync').onclick = function(event) { 121 $('start-stop-sync').onclick = function(event) {
122 if (self.signedIn_) { 122 if (self.signedIn_) {
123 if (self.signoutAllowed_) 123 if (self.signoutAllowed_)
124 SyncSetupOverlay.showStopSyncingUI(); 124 SyncSetupOverlay.showStopSyncingUI();
125 else 125 else
126 ManageProfileOverlay.showDisconnectManagedProfileDialog(); 126 chrome.send('showDisconnectManagedProfileDialog');
127 } else if (cr.isChromeOS) { 127 } else if (cr.isChromeOS) {
128 SyncSetupOverlay.showSetupUI(); 128 SyncSetupOverlay.showSetupUI();
129 } else { 129 } else {
130 SyncSetupOverlay.startSignIn(); 130 SyncSetupOverlay.startSignIn();
131 } 131 }
132 }; 132 };
133 $('customize-sync').onclick = function(event) { 133 $('customize-sync').onclick = function(event) {
134 SyncSetupOverlay.showSetupUI(); 134 SyncSetupOverlay.showSetupUI();
135 }; 135 };
136 136
(...skipping 1708 matching lines...) Expand 10 before | Expand all | Expand 10 after
1845 BrowserOptions.getLoggedInUsername = function() { 1845 BrowserOptions.getLoggedInUsername = function() {
1846 return BrowserOptions.getInstance().username_; 1846 return BrowserOptions.getInstance().username_;
1847 }; 1847 };
1848 } 1848 }
1849 1849
1850 // Export 1850 // Export
1851 return { 1851 return {
1852 BrowserOptions: BrowserOptions 1852 BrowserOptions: BrowserOptions
1853 }; 1853 };
1854 }); 1854 });
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/options/manage_profile_overlay.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698