| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 /** | 5 /** |
| 6 * @fileoverview A helper object used from the the People section to get the | 6 * @fileoverview A helper object used from the the People section to get the |
| 7 * status of the sync backend and user preferences on what data to sync. Used | 7 * status of the sync backend and user preferences on what data to sync. Used |
| 8 * for both Chrome browser and ChromeOS. | 8 * for both Chrome browser and ChromeOS. |
| 9 */ | 9 */ |
| 10 cr.exportPath('settings'); | 10 cr.exportPath('settings'); |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 /** @override */ | 225 /** @override */ |
| 226 setSyncEncryption: function(syncPrefs) { | 226 setSyncEncryption: function(syncPrefs) { |
| 227 return cr.sendWithPromise('SyncSetupSetEncryption', | 227 return cr.sendWithPromise('SyncSetupSetEncryption', |
| 228 JSON.stringify(syncPrefs)); | 228 JSON.stringify(syncPrefs)); |
| 229 }, | 229 }, |
| 230 | 230 |
| 231 /** @override */ | 231 /** @override */ |
| 232 openActivityControlsUrl: function() { | 232 openActivityControlsUrl: function() { |
| 233 chrome.metricsPrivate.recordUserAction( | 233 chrome.metricsPrivate.recordUserAction( |
| 234 'Signin_AccountSettings_GoogleActivityControlsClicked'); | 234 'Signin_AccountSettings_GoogleActivityControlsClicked'); |
| 235 window.open(loadTimeData.getString('activityControlsUrl')); | |
| 236 } | 235 } |
| 237 }; | 236 }; |
| 238 | 237 |
| 239 return { | 238 return { |
| 240 SyncBrowserProxy: SyncBrowserProxy, | 239 SyncBrowserProxy: SyncBrowserProxy, |
| 241 SyncBrowserProxyImpl: SyncBrowserProxyImpl, | 240 SyncBrowserProxyImpl: SyncBrowserProxyImpl, |
| 242 }; | 241 }; |
| 243 }); | 242 }); |
| OLD | NEW |