| Index: chrome/browser/resources/local_ntp/local_ntp_fast.js
|
| diff --git a/chrome/browser/resources/local_ntp/local_ntp_fast.js b/chrome/browser/resources/local_ntp/local_ntp_fast.js
|
| index 7caa5316157ffe5b58e5d56a44e6c3d7a825aaf0..8b6fc3ba6f57004fca024369a55f5237d6703ff0 100644
|
| --- a/chrome/browser/resources/local_ntp/local_ntp_fast.js
|
| +++ b/chrome/browser/resources/local_ntp/local_ntp_fast.js
|
| @@ -246,6 +246,16 @@ function renderTheme() {
|
| document.body.classList.toggle(CLASSES.ALTERNATE_LOGO, info.alternateLogo);
|
| updateThemeAttribution(info.attributionUrl);
|
| setCustomThemeStyle(info);
|
| +
|
| + var themeinfo = {cmd: 'updateTheme'};
|
| + if (!info.usingDefaultTheme) {
|
| + themeinfo.tileBorderColor = convertToRGBAColor(info.sectionBorderColorRgba);
|
| + themeinfo.tileHoverBorderColor = convertToRGBAColor(info.headerColorRgba);
|
| + }
|
| + themeinfo.isThemeDark = isThemeDark;
|
| + themeinfo.tileTitleColor = convertToRGBAColor(info.textColorRgba);
|
| +
|
| + $('mv-single').contentWindow.postMessage(themeinfo, '*');
|
| }
|
|
|
|
|
| @@ -703,8 +713,6 @@ function init() {
|
| if (ntpApiHandle.isInputInProgress)
|
| onInputStart();
|
|
|
| - renderTheme();
|
| -
|
| searchboxApiHandle = topLevelHandle.searchBox;
|
|
|
| if (fakebox) {
|
| @@ -770,6 +778,7 @@ function init() {
|
|
|
| iframe.onload = function() {
|
| reloadTiles();
|
| + renderTheme();
|
| };
|
|
|
| window.addEventListener('message', handlePostMessage);
|
|
|