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

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

Issue 2073543002: Settings People Revamp: Add Manage Synced Data row to Sync Page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix description Created 4 years, 6 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 his encryption 8 * Names of the radio buttons which allow the user to choose his encryption
9 * mechanism. 9 * mechanism.
10 * @enum {string} 10 * @enum {string}
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 202
203 /** 203 /**
204 * Handler for when any sync data type checkbox is changed. 204 * Handler for when any sync data type checkbox is changed.
205 * @private 205 * @private
206 */ 206 */
207 onSingleSyncDataTypeChanged_: function() { 207 onSingleSyncDataTypeChanged_: function() {
208 this.browserProxy_.setSyncDatatypes(this.syncPrefs).then( 208 this.browserProxy_.setSyncDatatypes(this.syncPrefs).then(
209 this.handlePageStatusChanged_.bind(this)); 209 this.handlePageStatusChanged_.bind(this));
210 }, 210 },
211 211
212 /** @private */
213 onManageSyncedDataTap_: function() {
214 window.open(loadTimeData.getString('syncDashboardUrl'));
215 },
216
212 /** 217 /**
213 * Sends the newly created custom sync passphrase to the browser. 218 * Sends the newly created custom sync passphrase to the browser.
214 * @private 219 * @private
215 */ 220 */
216 onSaveNewPassphraseTap_: function() { 221 onSaveNewPassphraseTap_: function() {
217 assert(this.creatingNewPassphrase_); 222 assert(this.creatingNewPassphrase_);
218 223
219 // If a new password has been entered but it is invalid, do not send the 224 // If a new password has been entered but it is invalid, do not send the
220 // sync state to the API. 225 // sync state to the API.
221 if (!this.validateCreatedPassphrases_()) 226 if (!this.validateCreatedPassphrases_())
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 339
335 passphraseInput.invalid = emptyPassphrase; 340 passphraseInput.invalid = emptyPassphrase;
336 passphraseConfirmationInput.invalid = 341 passphraseConfirmationInput.invalid =
337 !emptyPassphrase && mismatchedPassphrase; 342 !emptyPassphrase && mismatchedPassphrase;
338 343
339 return !emptyPassphrase && !mismatchedPassphrase; 344 return !emptyPassphrase && !mismatchedPassphrase;
340 }, 345 },
341 }); 346 });
342 347
343 })(); 348 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698