| 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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 assert(this.syncPrefs); | 262 assert(this.syncPrefs); |
| 263 this.browserProxy_.setSyncDatatypes(this.syncPrefs).then( | 263 this.browserProxy_.setSyncDatatypes(this.syncPrefs).then( |
| 264 this.handlePageStatusChanged_.bind(this)); | 264 this.handlePageStatusChanged_.bind(this)); |
| 265 }, | 265 }, |
| 266 | 266 |
| 267 /** @private */ | 267 /** @private */ |
| 268 onActivityControlsTap_: function() { | 268 onActivityControlsTap_: function() { |
| 269 this.browserProxy_.openActivityControlsUrl(); | 269 this.browserProxy_.openActivityControlsUrl(); |
| 270 }, | 270 }, |
| 271 | 271 |
| 272 /** @private */ | |
| 273 onManageSyncedDataTap_: function() { | |
| 274 window.open(loadTimeData.getString('syncDashboardUrl')); | |
| 275 }, | |
| 276 | |
| 277 /** | 272 /** |
| 278 * Handler for when the autofill data type checkbox is changed. | 273 * Handler for when the autofill data type checkbox is changed. |
| 279 * @private | 274 * @private |
| 280 */ | 275 */ |
| 281 onAutofillDataTypeChanged_: function() { | 276 onAutofillDataTypeChanged_: function() { |
| 282 this.set('syncPrefs.paymentsIntegrationEnabled', | 277 this.set('syncPrefs.paymentsIntegrationEnabled', |
| 283 this.syncPrefs.autofillSynced); | 278 this.syncPrefs.autofillSynced); |
| 284 | 279 |
| 285 this.onSingleSyncDataTypeChanged_(); | 280 this.onSingleSyncDataTypeChanged_(); |
| 286 }, | 281 }, |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 onLearnMoreTap_: function(event) { | 427 onLearnMoreTap_: function(event) { |
| 433 if (event.target.tagName == 'A') { | 428 if (event.target.tagName == 'A') { |
| 434 // Stop the propagation of events, so that clicking on links inside | 429 // Stop the propagation of events, so that clicking on links inside |
| 435 // checkboxes or radio buttons won't change the value. | 430 // checkboxes or radio buttons won't change the value. |
| 436 event.stopPropagation(); | 431 event.stopPropagation(); |
| 437 } | 432 } |
| 438 } | 433 } |
| 439 }); | 434 }); |
| 440 | 435 |
| 441 })(); | 436 })(); |
| OLD | NEW |