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

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

Issue 2239973002: MD Settings: Use dom-if for the profile disconnect dialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 3 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/resources/settings/people_page/people_page.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html "> 1 <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html ">
2 <link rel="import" href="chrome://resources/cr_elements/cr_expand_button/cr_expa nd_button.html"> 2 <link rel="import" href="chrome://resources/cr_elements/cr_expand_button/cr_expa nd_button.html">
3 <link rel="import" href="chrome://resources/cr_elements/icons.html"> 3 <link rel="import" href="chrome://resources/cr_elements/icons.html">
4 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> 4 <link rel="import" href="chrome://resources/html/i18n_behavior.html">
5 <link rel="import" href="chrome://resources/html/icon.html"> 5 <link rel="import" href="chrome://resources/html/icon.html">
6 <link rel="import" href="chrome://resources/html/polymer.html"> 6 <link rel="import" href="chrome://resources/html/polymer.html">
7 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> 7 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html">
8 <link rel="import" href="chrome://resources/polymer/v1_0/iron-collapse/iron-coll apse.html"> 8 <link rel="import" href="chrome://resources/polymer/v1_0/iron-collapse/iron-coll apse.html">
9 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani matable.html"> 9 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani matable.html">
10 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> 10 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html">
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 associated-control="[[$$('#picture-subpage-trigger')]]" 367 associated-control="[[$$('#picture-subpage-trigger')]]"
368 page-title="$i18n{editPerson}"> 368 page-title="$i18n{editPerson}">
369 <settings-manage-profile profile-icon-url="[[profileIconUrl_]]" 369 <settings-manage-profile profile-icon-url="[[profileIconUrl_]]"
370 profile-name="[[profileName_]]" sync-status="[[syncStatus]]"> 370 profile-name="[[profileName_]]" sync-status="[[syncStatus]]">
371 </settings-manage-profile> 371 </settings-manage-profile>
372 </settings-subpage> 372 </settings-subpage>
373 </template> 373 </template>
374 </if> 374 </if>
375 </settings-animated-pages> 375 </settings-animated-pages>
376 376
377 <dialog is="cr-dialog" id="disconnectDialog" on-close="onDisconnectClosed_" 377 <template is="dom-if" if="[[showDisconnectDialog_]]" restamp>
378 close-text="$i18n{close}" ignore-popstate> 378 <dialog is="cr-dialog" id="disconnectDialog" ignore-popstate
379 <div class="title">$i18n{syncDisconnectTitle}</div> 379 on-close="onDisconnectClosed_" close-text="$i18n{close}">
380 <div class="body"> 380 <div class="title">$i18n{syncDisconnectTitle}</div>
381 <div inner-h-t-m-l="[[getDisconnectExplanationHtml_(syncStatus.domain)]] "> 381 <div class="body">
382 <div inner-h-t-m-l="[[
383 getDisconnectExplanationHtml_(syncStatus.domain)]]">
384 </div>
382 </div> 385 </div>
383 </div> 386 <div class="button-container">
384 <div class="button-container"> 387 <paper-button on-tap="onDisconnectCancel_" class="cancel-button">
385 <paper-button on-tap="onDisconnectCancel_" class="cancel-button"> 388 $i18n{cancel}
386 $i18n{cancel} 389 </paper-button>
387 </paper-button> 390 <paper-button id="disconnectConfirm" class="action-button"
388 <paper-button id="disconnectConfirm" class="action-button" 391 hidden="[[syncStatus.domain]]" on-tap="onDisconnectConfirm_">
389 hidden="[[syncStatus.domain]]" on-tap="onDisconnectConfirm_"> 392 $i18n{syncDisconnect}
390 $i18n{syncDisconnect} 393 </paper-button>
391 </paper-button> 394 <paper-button id="disconnectManagedProfileConfirm"
392 <paper-button id="disconnectManagedProfileConfirm" class="action-button" 395 class="action-button" hidden="[[!syncStatus.domain]]"
393 hidden="[[!syncStatus.domain]]" on-tap="onDisconnectConfirm_"> 396 on-tap="onDisconnectConfirm_">
394 $i18n{syncDisconnectConfirm} 397 $i18n{syncDisconnectConfirm}
395 </paper-button> 398 </paper-button>
396 </div> 399 </div>
397 <if expr="(not chromeos and is_posix) or is_win or is_macosx"> 400 <if expr="(not chromeos and is_posix) or is_win or is_macosx">
398 <template is="dom-if" if="[[!syncStatus.domain]]"> 401 <template is="dom-if" if="[[!syncStatus.domain]]">
399 <div class="footer border-top-divider"> 402 <div class="footer border-top-divider">
400 <div class="settings-box first"> 403 <div class="settings-box first">
401 <paper-checkbox id="deleteProfile" class="start" 404 <paper-checkbox id="deleteProfile" class="start"
402 checked="{{deleteProfile_}}"> 405 checked="{{deleteProfile_}}">
403 $i18n{syncDisconnectDeleteProfile} 406 $i18n{syncDisconnectDeleteProfile}
404 </paper-checkbox> 407 </paper-checkbox>
405 <cr-expand-button expanded="{{deleteProfileWarningVisible_}}" 408 <cr-expand-button expanded="{{deleteProfileWarningVisible_}}"
406 alt="$i18n{deleteProfileWarningExpandA11yLabel}"> 409 alt="$i18n{deleteProfileWarningExpandA11yLabel}">
407 </cr-expand-button> 410 </cr-expand-button>
411 </div>
412 <iron-collapse opened="[[deleteProfileWarningVisible_]]">
413 <div class="delete-profile-warning">
414 [[deleteProfileWarning_]]
415 </div>
416 </iron-collapse>
408 </div> 417 </div>
409 <iron-collapse opened="[[deleteProfileWarningVisible_]]"> 418 </template>
410 <div class="delete-profile-warning">[[deleteProfileWarning_]]</div>
411 </iron-collapse>
412 </div>
413 </template>
414 </if> 419 </if>
415 </dialog> 420 </dialog>
421 </template>
416 422
417 <template is="dom-if" if="[[showImportDataDialog_]]" restamp> 423 <template is="dom-if" if="[[showImportDataDialog_]]" restamp>
418 <settings-import-data-dialog prefs="{{prefs}}" 424 <settings-import-data-dialog prefs="{{prefs}}"
419 on-close="onImportDataDialogClosed_"> 425 on-close="onImportDataDialogClosed_">
420 </settings-import-data-dialog> 426 </settings-import-data-dialog>
421 </template> 427 </template>
422 428
423 <if expr="chromeos"> 429 <if expr="chromeos">
424 <template is="dom-if" if="[[showEasyUnlockTurnOffDialog_]]"> 430 <template is="dom-if" if="[[showEasyUnlockTurnOffDialog_]]">
425 <easy-unlock-turn-off-dialog id="easyUnlockTurnOffDialog" 431 <easy-unlock-turn-off-dialog id="easyUnlockTurnOffDialog"
426 on-close="onEasyUnlockTurnOffDialogClose_"> 432 on-close="onEasyUnlockTurnOffDialogClose_">
427 </easy-unlock-turn-off-dialog> 433 </easy-unlock-turn-off-dialog>
428 </template> 434 </template>
429 </if> 435 </if>
430 </template> 436 </template>
431 <script src="people_page.js"></script> 437 <script src="people_page.js"></script>
432 </dom-module> 438 </dom-module>
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/settings/people_page/people_page.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698