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

Unified Diff: ui/file_manager/file_manager/foreground/js/drive_banners.js

Issue 571453002: Correct indentation, JSDoc, etc... to comply with closure linter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 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: ui/file_manager/file_manager/foreground/js/drive_banners.js
diff --git a/ui/file_manager/file_manager/foreground/js/drive_banners.js b/ui/file_manager/file_manager/foreground/js/drive_banners.js
index d0d53c0a7830c59f0df33b222c531e7443efbd65..ce3cc760753e7c6ad42d0c22bcbfac2ad077ab80 100644
--- a/ui/file_manager/file_manager/foreground/js/drive_banners.js
+++ b/ui/file_manager/file_manager/foreground/js/drive_banners.js
@@ -41,13 +41,14 @@ function FileListBannerController(
chrome.storage.onChanged.addListener(this.onStorageChange_.bind(this));
this.welcomeHeaderCounter_ = WELCOME_HEADER_COUNTER_LIMIT;
this.warningDismissedCounter_ = 0;
- chrome.storage.local.get([WELCOME_HEADER_COUNTER_KEY, WARNING_DISMISSED_KEY],
- function(values) {
- this.welcomeHeaderCounter_ =
- parseInt(values[WELCOME_HEADER_COUNTER_KEY]) || 0;
- this.warningDismissedCounter_ =
- parseInt(values[WARNING_DISMISSED_KEY]) || 0;
- }.bind(this));
+ chrome.storage.local.get(
+ [WELCOME_HEADER_COUNTER_KEY, WARNING_DISMISSED_KEY],
+ function(values) {
+ this.welcomeHeaderCounter_ =
+ parseInt(values[WELCOME_HEADER_COUNTER_KEY]) || 0;
+ this.warningDismissedCounter_ =
+ parseInt(values[WARNING_DISMISSED_KEY]) || 0;
+ }.bind(this));
this.authFailedBanner_ =
this.document_.querySelector('#drive-auth-failed-warning');
@@ -215,7 +216,7 @@ FileListBannerController.prototype.prepareAndShowWelcomeBanner_ =
* @private
*/
FileListBannerController.prototype.showLowDriveSpaceWarning_ =
- function(show, sizeStats) {
+ function(show, sizeStats) {
var box = this.document_.querySelector('#volume-space-warning');
// Avoid showing two banners.
« no previous file with comments | « ui/file_manager/file_manager/foreground/js/directory_tree.js ('k') | ui/file_manager/file_manager/foreground/js/file_grid.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698