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

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

Issue 2180823004: Migrate <cr-dialog> from PaperDialogBehavior to native <dialog>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge conflicts with Tommy's CL. Created 4 years, 4 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 /** 5 /**
6 * @fileoverview 6 * @fileoverview
7 * 'settings-people-page' is the settings page containing sign-in settings. 7 * 'settings-people-page' is the settings page containing sign-in settings.
8 */ 8 */
9 Polymer({ 9 Polymer({
10 is: 'settings-people-page', 10 is: 'settings-people-page',
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 this.syncBrowserProxy_.openActivityControlsUrl(); 203 this.syncBrowserProxy_.openActivityControlsUrl();
204 }, 204 },
205 205
206 /** @private */ 206 /** @private */
207 onSigninTap_: function() { 207 onSigninTap_: function() {
208 this.syncBrowserProxy_.startSignIn(); 208 this.syncBrowserProxy_.startSignIn();
209 }, 209 },
210 210
211 /** @private */ 211 /** @private */
212 onDisconnectTap_: function() { 212 onDisconnectTap_: function() {
213 this.$.disconnectDialog.open(); 213 this.$.disconnectDialog.showModal();
214 }, 214 },
215 215
216 /** @private */ 216 /** @private */
217 onDisconnectCancel_: function() { 217 onDisconnectCancel_: function() {
218 this.$.disconnectDialog.close(); 218 this.$.disconnectDialog.close();
219 }, 219 },
220 220
221 /** @private */ 221 /** @private */
222 onDisconnectConfirm_: function() { 222 onDisconnectConfirm_: function() {
223 var deleteProfile = !!this.syncStatus.domain || 223 var deleteProfile = !!this.syncStatus.domain ||
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 if (!syncStatus) 318 if (!syncStatus)
319 return ''; 319 return '';
320 if (syncStatus.hasError) 320 if (syncStatus.hasError)
321 return 'settings:sync-problem'; 321 return 'settings:sync-problem';
322 if (syncStatus.managed) 322 if (syncStatus.managed)
323 return 'settings:sync-disabled'; 323 return 'settings:sync-disabled';
324 324
325 return 'settings:done'; 325 return 'settings:done';
326 }, 326 },
327 }); 327 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698