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

Unified Diff: chrome/browser/resources/local_ntp/most_visited_util.js

Issue 2600683002: Run tools/clang-format-js on some of chrome/browser/resources/ (Closed)
Patch Set: event_handler.js Created 4 years 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/local_ntp/most_visited_util.js
diff --git a/chrome/browser/resources/local_ntp/most_visited_util.js b/chrome/browser/resources/local_ntp/most_visited_util.js
index 6898b2843771985ec17466054e498b1b48ef9689..52ad99f68ed7d112cfedac4940cae430d42130e4 100644
--- a/chrome/browser/resources/local_ntp/most_visited_util.js
+++ b/chrome/browser/resources/local_ntp/most_visited_util.js
@@ -7,7 +7,7 @@
* @fileoverview Utilities for rendering most visited thumbnails and titles.
*/
-<include src="instant_iframe_validation.js">
+// <include src="instant_iframe_validation.js">
/**
@@ -107,8 +107,8 @@ function createMostVisitedLink(params, href, title, text, direction) {
event.keyCode == 8 /* BACKSPACE */) {
event.preventDefault();
window.parent.postMessage('tileBlacklisted,' + params.pos, DOMAIN_ORIGIN);
- } else if (event.keyCode == 13 /* ENTER */ ||
- event.keyCode == 32 /* SPACE */) {
+ } else if (
+ event.keyCode == 13 /* ENTER */ || event.keyCode == 32 /* SPACE */) {
// Event target is the <a> tag. Send a click event on it, which will
// trigger the 'click' event registered above.
event.preventDefault();
@@ -221,8 +221,7 @@ function fillMostVisited(location, fill) {
if (isFinite(params.dummy) && parseInt(params.dummy, 10)) {
data.dummy = true;
}
- if (/^javascript:/i.test(data.url) ||
- /^javascript:/i.test(data.thumbnailUrl))
+ if (/^javascript:/i.test(data.url) || /^javascript:/i.test(data.thumbnailUrl))
return;
if (data.direction)
document.body.dir = data.direction;

Powered by Google App Engine
This is Rietveld 408576698