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

Unified Diff: chrome/browser/resources/snippets_internals.js

Issue 2600683002: Run tools/clang-format-js on some of chrome/browser/resources/ (Closed)
Patch Set: hackhackhack Created 3 years, 11 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/snippets_internals.js
diff --git a/chrome/browser/resources/snippets_internals.js b/chrome/browser/resources/snippets_internals.js
index 7f623668eb0b2cd8daef77891220b21b78e9818e..108831a49d46f80e795cb392050d20a9a23a5015 100644
--- a/chrome/browser/resources/snippets_internals.js
+++ b/chrome/browser/resources/snippets_internals.js
@@ -50,8 +50,7 @@ cr.define('chrome.SnippetsInternals', function() {
function receiveContentSuggestions(categoriesList) {
lastSuggestions = categoriesList;
- displayList(categoriesList, 'content-suggestions',
- 'hidden-toggler');
+ displayList(categoriesList, 'content-suggestions', 'hidden-toggler');
var clearCachedButtons =
document.getElementsByClassName('submit-clear-cached-suggestions');
@@ -89,7 +88,8 @@ cr.define('chrome.SnippetsInternals', function() {
var id = parseInt(event.currentTarget.getAttribute('category-id'), 10);
var table = $('dismissed-suggestions-' + id);
table.classList.toggle('hidden');
- chrome.send('toggleDismissedSuggestions',
+ chrome.send(
+ 'toggleDismissedSuggestions',
[id, !table.classList.contains('hidden')]);
}
@@ -115,7 +115,8 @@ cr.define('chrome.SnippetsInternals', function() {
function receiveLastRemoteSuggestionsBackgroundFetchTime(
lastRemoteSuggestionsBackgroundFetchTime) {
- receiveProperty('last-background-fetch-time-label',
+ receiveProperty(
+ 'last-background-fetch-time-label',
lastRemoteSuggestionsBackgroundFetchTime);
}
@@ -152,8 +153,10 @@ cr.define('chrome.SnippetsInternals', function() {
display = 'none';
}
- if ($(domId + '-empty')) $(domId + '-empty').textContent = text;
- if ($(domId + '-clear')) $(domId + '-clear').style.display = display;
+ if ($(domId + '-empty'))
+ $(domId + '-empty').textContent = text;
+ if ($(domId + '-clear'))
+ $(domId + '-clear').style.display = display;
var links = document.getElementsByClassName(toggleClass);
for (var link of links) {
@@ -173,5 +176,5 @@ cr.define('chrome.SnippetsInternals', function() {
};
});
-document.addEventListener('DOMContentLoaded',
- chrome.SnippetsInternals.initialize);
+document.addEventListener(
+ 'DOMContentLoaded', chrome.SnippetsInternals.initialize);

Powered by Google App Engine
This is Rietveld 408576698