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

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

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.js
diff --git a/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.js b/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.js
index b119b9e05fcbd3ab382694598ffd2668fd70e94d..d11f3afc11e5fd9bc85b4ac5d3436f03d01f991f 100644
--- a/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.js
+++ b/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.js
@@ -30,11 +30,20 @@ Polymer({
type: Boolean,
reflectToAttribute: true,
},
+
+ /**
+ * Whether search field should be hidden.
+ * @type {boolean}
+ */
+ hideSearch: {
michaelpg 2016/07/13 00:01:36 unused?
Moe 2016/07/13 20:17:17 No, it's used in cr_toolbar.html to hide the searc
michaelpg 2016/07/14 00:31:28 but where is it set?
Moe 2016/07/14 17:19:55 in settings_ui.html
+ type: Boolean,
+ value: false,
+ },
},
- /** @return {!CrToolbarSearchFieldElement} */
+ /** @return {CrToolbarSearchFieldElement} */
getSearchField: function() {
- return this.$.search;
+ return /** @type {CrToolbarSearchFieldElement} */ (this.$$('#search'));
},
/** @private */

Powered by Google App Engine
This is Rietveld 408576698