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

Unified Diff: ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.html

Issue 2106103006: MD Settings: cr/cros - Guest mode page visibility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Itr#2 Created 4 years, 5 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: ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.html
diff --git a/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.html b/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.html
index a50b7853ada9a5c9a7a805dcc76654b82bf82f16..9a33212c65145edf8898a2cf7a2c77d0974be7fa 100644
--- a/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.html
+++ b/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.html
@@ -54,16 +54,17 @@
</paper-icon-button>
<h1>[[pageName]]</h1>
</div>
-
- <div id="centeredContent">
- <cr-toolbar-search-field id="search" narrow="[[narrow_]]"
- label="[[searchPrompt]]" clear-label="[[clearLabel]]"
- spinner-active="[[spinnerActive]]"
- showing-search="{{showingSearch_}}">
- </cr-toolbar-search-field>
- <iron-media-query query="(max-width: 900px)" query-matches="{{narrow_}}">
- </iron-media-query>
- </div>
+ <template is="dom-if" if="[[!hideSearch]]">
+ <div id="centeredContent">
+ <cr-toolbar-search-field id="search" narrow="[[narrow_]]"
+ label="[[searchPrompt]]" clear-label="[[clearLabel]]"
+ spinner-active="[[spinnerActive]]"
+ showing-search="{{showingSearch_}}">
+ </cr-toolbar-search-field>
+ <iron-media-query query="(max-width: 900px)" query-matches="{{narrow_}}">
+ </iron-media-query>
+ </div>
+ </template>
</template>
<script src="cr_toolbar.js"></script>
</dom-module>

Powered by Google App Engine
This is Rietveld 408576698