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

Unified Diff: chrome/browser/resources/chromeos/drive_internals.js

Issue 2944703004: Run clang-format on .js files in c/b/r/chromeos (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/chromeos/drive_internals.js
diff --git a/chrome/browser/resources/chromeos/drive_internals.js b/chrome/browser/resources/chromeos/drive_internals.js
index ac124cb7df6e8f48572dd3ecbd2d7d71e82789e5..464616064cd9c91b0e3d33963b2492068916d42f 100644
--- a/chrome/browser/resources/chromeos/drive_internals.js
+++ b/chrome/browser/resources/chromeos/drive_internals.js
@@ -12,8 +12,9 @@ function ToMegaByteString(bytes) {
var mb = Math.floor(bytes / (1 << 20));
return mb.toString().replace(
/\d+?(?=(\d{3})+$)/g, // Digit sequence (\d+) followed (?=) by 3n digits.
- function(three_digit_block) { return three_digit_block + ','; }
- );
+ function(three_digit_block) {
+ return three_digit_block + ',';
+ });
}
/**
@@ -191,8 +192,7 @@ function updateAppList(appList) {
function updateLocalMetadata(localMetadata) {
var changestamp = localMetadata['account-largest-changestamp-local'];
- $('account-largest-changestamp-local').textContent =
- changestamp.toString() +
+ $('account-largest-changestamp-local').textContent = changestamp.toString() +
(changestamp > 0 ? ' (loaded)' : ' (not loaded)') +
(localMetadata['account-metadata-refreshing'] ? ' (refreshing)' : '');
}
@@ -203,11 +203,11 @@ function updateLocalMetadata(localMetadata) {
*/
function updateDeltaUpdateStatus(deltaUpdateStatus) {
$('push-notification-enabled').textContent =
- deltaUpdateStatus['push-notification-enabled'];
+ deltaUpdateStatus['push-notification-enabled'];
$('last-update-check-time').textContent =
- deltaUpdateStatus['last-update-check-time'];
+ deltaUpdateStatus['last-update-check-time'];
$('last-update-check-error').textContent =
- deltaUpdateStatus['last-update-check-error'];
+ deltaUpdateStatus['last-update-check-error'];
}
/**
« no previous file with comments | « chrome/browser/resources/chromeos/cryptohome.js ('k') | chrome/browser/resources/chromeos/emulator/audio_settings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698