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

Unified Diff: chrome/browser/resources/ntp4/md_incognito_tab.js

Issue 2939273002: DO NOT SUBMIT: what chrome/browser/resources/ could eventually look like with clang-format (Closed)
Patch Set: Created 3 years, 6 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: chrome/browser/resources/ntp4/md_incognito_tab.js
diff --git a/chrome/browser/resources/ntp4/md_incognito_tab.js b/chrome/browser/resources/ntp4/md_incognito_tab.js
index 4a36703026a43362714c02f437053043b1ef655a..4b246225fb8c6c90d0ea9394c7472097859ba31b 100644
--- a/chrome/browser/resources/ntp4/md_incognito_tab.js
+++ b/chrome/browser/resources/ntp4/md_incognito_tab.js
@@ -13,7 +13,7 @@ function recomputeLayoutWidth() {
var fontSize = window.getComputedStyle(document.body).fontSize;
var maxWidth = localStorage[fontSize] ||
(bulletpoints[0].offsetWidth + bulletpoints[1].offsetWidth +
- 40 /* margin */ + 2 /* offsetWidths may be rounded down */);
+ 40 /* margin */ + 2 /* offsetWidths may be rounded down */);
// Save the data for quicker access when the NTP is reloaded. Note that since
// we're in the Incognito mode, the local storage is ephemeral and the data
@@ -29,7 +29,7 @@ function recomputeLayoutWidth() {
if (tooWide)
maxWidth = MAX_ALLOWED_WIDTH;
- content.style.maxWidth = maxWidth + "px";
+ content.style.maxWidth = maxWidth + 'px';
}
window.addEventListener('load', recomputeLayoutWidth);
@@ -44,8 +44,8 @@ var ntp = {
/** @param {!{hasCustomBackground: boolean}} themeData */
themeChanged: function(themeData) {
- document.documentElement.setAttribute('hascustombackground',
- themeData.hasCustomBackground);
+ document.documentElement.setAttribute(
+ 'hascustombackground', themeData.hasCustomBackground);
$('incognitothemecss').href =
'chrome://theme/css/incognito_new_tab_theme.css?' + Date.now();
},

Powered by Google App Engine
This is Rietveld 408576698