Chromium Code Reviews| Index: chrome/browser/resources/ntp4/incognito_tab.html |
| diff --git a/chrome/browser/resources/ntp4/incognito_tab.html b/chrome/browser/resources/ntp4/incognito_tab.html |
| index 276d854b1d9bdb55c22a8eb0d5d4294daebb9cab..c5d9ab1c29c88c39626647e6fb45596c07612247 100644 |
| --- a/chrome/browser/resources/ntp4/incognito_tab.html |
| +++ b/chrome/browser/resources/ntp4/incognito_tab.html |
| @@ -1,5 +1,6 @@ |
| <!doctype html> |
| <html i18n-values="dir:textdirection; |
| + hasCustomBackground:hasCustomBackground; |
| bookmarkbarattached:bookmarkbarattached; |
| lang:language"> |
| <head> |
| @@ -21,13 +22,13 @@ document.write('<link id="incognitothemecss" rel="stylesheet" ' + |
| <span> |
| <h1 i18n-content="incognitoTabHeading"></h1> |
| <p> |
| - <span i18n-values=".innerHTML:incognitoTabDescription"></span> |
| - <a i18n-content="learnMore" i18n-values=".href:learnMoreLink"></a> |
| + <span i18n-content="incognitoTabDescription"></span> |
| </p> |
| <p> |
| - <strong i18n-content="incognitoTabWarning"></strong> |
| + <span i18n-content="incognitoTabWarning"></span> |
| </p> |
| </span> |
| + <a i18n-content="learnMore" i18n-values=".href:learnMoreLink"></a> |
| </div> |
| </body> |
| <script src="chrome://resources/js/cr.js"></script> |
| @@ -42,7 +43,9 @@ cr.define('ntp', function() { |
| document.documentElement.setAttribute('bookmarkbarattached', !!attached); |
| } |
|
Dan Beam
2015/11/20 00:50:31
/** @param {!{hasCustomBackground: boolean}} theme
Evan Stade
2015/11/20 22:05:17
Done.
|
| - function themeChanged() { |
| + function themeChanged(themeData) { |
| + document.documentElement.setAttribute('hasCustomBackground', |
| + themeData.hasCustomBackground); |
| document.getElementById('incognitothemecss').href = |
| 'chrome://theme/css/incognito_new_tab_theme.css?' + Date.now(); |
| } |