Index: chrome/browser/resources/contextual_search/promo.js |
diff --git a/chrome/browser/resources/contextual_search/promo.js b/chrome/browser/resources/contextual_search/promo.js |
index 1168db2f0dbd256e702db48191900283f6e7973a..cb402ef90df4c0a4314b4273ed0e3ee4713f74f6 100644 |
--- a/chrome/browser/resources/contextual_search/promo.js |
+++ b/chrome/browser/resources/contextual_search/promo.js |
@@ -3,6 +3,18 @@ |
found in the LICENSE file. |
*/ |
+<include src="../../../../ui/webui/resources/js/util.js"> |
+<include src="../../../../ui/webui/resources/js/load_time_data.js"> |
+ |
+/** |
+ * Once the DOM is loaded, determine if the header image is to be kept. |
+ */ |
+document.addEventListener('DOMContentLoaded', function(event) { |
+ if (config['hideHeader']) { |
+ $('container').removeChild($('header-image')); |
+ } |
+}); |
+ |
/** |
* On load, registers the handler to add the 'hide' class to the container |
* element in order to hide it. |