OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 (function() { | 5 (function() { |
6 | 6 |
7 /** | 7 /** |
8 * Names of the radio buttons which allow the user to choose their encryption | 8 * Names of the radio buttons which allow the user to choose their encryption |
9 * mechanism. | 9 * mechanism. |
10 * @enum {string} | 10 * @enum {string} |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 * Handler for when any sync data type checkbox is changed (except autofill). | 263 * Handler for when any sync data type checkbox is changed (except autofill). |
264 * @private | 264 * @private |
265 */ | 265 */ |
266 onSingleSyncDataTypeChanged_: function() { | 266 onSingleSyncDataTypeChanged_: function() { |
267 assert(this.syncPrefs); | 267 assert(this.syncPrefs); |
268 this.browserProxy_.setSyncDatatypes(this.syncPrefs).then( | 268 this.browserProxy_.setSyncDatatypes(this.syncPrefs).then( |
269 this.handlePageStatusChanged_.bind(this)); | 269 this.handlePageStatusChanged_.bind(this)); |
270 }, | 270 }, |
271 | 271 |
272 /** @private */ | 272 /** @private */ |
| 273 onActivityControlsTap_: function() { |
| 274 this.browserProxy_.openActivityControlsUrl(); |
| 275 }, |
| 276 |
| 277 /** @private */ |
273 onManageSyncedDataTap_: function() { | 278 onManageSyncedDataTap_: function() { |
274 window.open(loadTimeData.getString('syncDashboardUrl')); | 279 window.open(loadTimeData.getString('syncDashboardUrl')); |
275 }, | 280 }, |
276 | 281 |
277 /** | 282 /** |
278 * Handler for when the autofill data type checkbox is changed. | 283 * Handler for when the autofill data type checkbox is changed. |
279 * @private | 284 * @private |
280 */ | 285 */ |
281 onAutofillDataTypeChanged_: function() { | 286 onAutofillDataTypeChanged_: function() { |
282 this.set('syncPrefs.paymentsIntegrationEnabled', | 287 this.set('syncPrefs.paymentsIntegrationEnabled', |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 onLearnMoreTap_: function(event) { | 437 onLearnMoreTap_: function(event) { |
433 if (event.target.tagName == 'A') { | 438 if (event.target.tagName == 'A') { |
434 // Stop the propagation of events, so that clicking on links inside | 439 // Stop the propagation of events, so that clicking on links inside |
435 // checkboxes or radio buttons won't change the value. | 440 // checkboxes or radio buttons won't change the value. |
436 event.stopPropagation(); | 441 event.stopPropagation(); |
437 } | 442 } |
438 } | 443 } |
439 }); | 444 }); |
440 | 445 |
441 })(); | 446 })(); |
OLD | NEW |