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

Unified Diff: chrome/browser/resources/local_ntp/most_visited_util.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/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 d7dc58d868b1b5be53782e00e699f568147b61df..63a6f03056f1f09dc24bdf994e617741717aa899 100644
--- a/chrome/browser/resources/local_ntp/most_visited_util.js
+++ b/chrome/browser/resources/local_ntp/most_visited_util.js
@@ -12,13 +12,13 @@
/**
- * The different types of events that are logged from the NTP. The multi-iframe
- * version of the NTP does *not* actually log any statistics anymore; this is
- * only required as a workaround for crbug.com/698675.
- * Note: Keep in sync with common/ntp_logging_events.h
- * @enum {number}
- * @const
- */
+ * The different types of events that are logged from the NTP. The multi-iframe
+ * version of the NTP does *not* actually log any statistics anymore; this is
+ * only required as a workaround for crbug.com/698675.
+ * Note: Keep in sync with common/ntp_logging_events.h
+ * @enum {number}
+ * @const
+ */
var NTP_LOGGING_EVENT_TYPE = {
NTP_ALL_TILES_RECEIVED: 12,
};
@@ -121,8 +121,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();
@@ -239,8 +239,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