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

Unified Diff: chrome/browser/resources/settings/about_page/detailed_build_info.html

Issue 2746643002: MD About: controlled indicator for change channel option (Closed)
Patch Set: format 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/about_page/detailed_build_info.html
diff --git a/chrome/browser/resources/settings/about_page/detailed_build_info.html b/chrome/browser/resources/settings/about_page/detailed_build_info.html
index 135f81371dbebde4e2d668db67e78b897ee537e3..eea525b1ff45c097880453bc296a11b1aa3304f8 100644
--- a/chrome/browser/resources/settings/about_page/detailed_build_info.html
+++ b/chrome/browser/resources/settings/about_page/detailed_build_info.html
@@ -3,9 +3,8 @@
<link rel="import" href="channel_switcher_dialog.html">
<link rel="import" href="../i18n_setup.html">
<link rel="import" href="../settings_shared_css.html">
-<link rel="import" href="chrome://resources/cr_elements/icons.html">
+<link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_indicator.html">
<link rel="import" href="chrome://resources/html/i18n_behavior.html">
-<link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html">
<dom-module id="settings-detailed-build-info">
@@ -15,8 +14,8 @@
-webkit-user-select: text;
}
- iron-icon {
- padding: 8px;
+ cr-policy-indicator {
+ -webkit-margin-start: 8px;
}
/* The command line string can contain very long substrings that
@@ -45,7 +44,13 @@
disabled="[[!canChangeChannel_]]">
$i18n{aboutChangeChannel}
</paper-button>
- <iron-icon icon="cr20:domain" hidden="[[canChangeChannel_]]"</iron-icon>
+ <template is="dom-if" if="[[!canChangeChannel_]]">
+ <cr-policy-indicator
+ name="[[getChangeChannelIndicatorSourceName_(canChangeChannel_)]]"
+ indicator-type="[[getChangeChannelIndicatorType_(
+ canChangeChannel_)]]">
+ </cr-policy-indicator>
+ </template>
</div>
<template is="dom-if" if="[[showChannelSwitcherDialog_]]" restamp>
<settings-channel-switcher-dialog></settings-channel-switcher-dialog>

Powered by Google App Engine
This is Rietveld 408576698