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

Side by Side Diff: chrome/browser/resources/settings/people_page/sync_page.js

Issue 2805003005: MD Settings: Move Activity Controls link to Sync subpage (Closed)
Patch Set: remove an obsolete test Created 3 years, 8 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
OLDNEW
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
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
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 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698