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

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

Issue 1473543002: Implement newly designed sign-in related histograms for desktop platorms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: format Created 5 years 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
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.exportPath('options'); 5 cr.exportPath('options');
6 6
7 /** 7 /**
8 * @typedef {{actionLinkText: (string|undefined), 8 * @typedef {{actionLinkText: (string|undefined),
9 * childUser: (boolean|undefined), 9 * childUser: (boolean|undefined),
10 * hasError: (boolean|undefined), 10 * hasError: (boolean|undefined),
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 196
197 $('start-stop-sync').onclick = function(event) { 197 $('start-stop-sync').onclick = function(event) {
198 if (self.signedIn_) { 198 if (self.signedIn_) {
199 if (self.signoutAllowed_) 199 if (self.signoutAllowed_)
200 SyncSetupOverlay.showStopSyncingUI(); 200 SyncSetupOverlay.showStopSyncingUI();
201 else 201 else
202 chrome.send('showDisconnectManagedProfileDialog'); 202 chrome.send('showDisconnectManagedProfileDialog');
203 } else if (cr.isChromeOS) { 203 } else if (cr.isChromeOS) {
204 SyncSetupOverlay.showSetupUI(); 204 SyncSetupOverlay.showSetupUI();
205 } else { 205 } else {
206 SyncSetupOverlay.startSignIn(); 206 SyncSetupOverlay.startSignIn('access-point-settings');
207 } 207 }
208 }; 208 };
209 $('customize-sync').onclick = function(event) { 209 $('customize-sync').onclick = function(event) {
210 SyncSetupOverlay.showSetupUI(); 210 SyncSetupOverlay.showSetupUI();
211 }; 211 };
212 212
213 // Internet connection section (ChromeOS only). 213 // Internet connection section (ChromeOS only).
214 if (cr.isChromeOS) { 214 if (cr.isChromeOS) {
215 options.network.NetworkList.decorate($('network-list')); 215 options.network.NetworkList.decorate($('network-list'));
216 // Show that the network settings are shared if this is a secondary user 216 // Show that the network settings are shared if this is a secondary user
(...skipping 2102 matching lines...) Expand 10 before | Expand all | Expand 10 after
2319 } 2319 }
2320 button.textContent = loadTimeData.getString(strId); 2320 button.textContent = loadTimeData.getString(strId);
2321 }; 2321 };
2322 } 2322 }
2323 2323
2324 // Export 2324 // Export
2325 return { 2325 return {
2326 BrowserOptions: BrowserOptions 2326 BrowserOptions: BrowserOptions
2327 }; 2327 };
2328 }); 2328 });
OLDNEW
« no previous file with comments | « chrome/browser/profiles/host_zoom_map_browsertest.cc ('k') | chrome/browser/resources/options/manage_profile_overlay.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698