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

Unified Diff: chrome/browser/resources/file_manager/foreground/js/ui/progress_center_panel.js

Issue 131403003: Files.app: Show drive sync state in the progress center. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-upload Created 6 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/file_manager/foreground/js/ui/progress_center_panel.js
diff --git a/chrome/browser/resources/file_manager/foreground/js/ui/progress_center_panel.js b/chrome/browser/resources/file_manager/foreground/js/ui/progress_center_panel.js
index 988b12e760027cc97042e0317c79f16cb1713af2..df1f5c6a287039d48d2c2b60f6bd7f8b80c4c24a 100644
--- a/chrome/browser/resources/file_manager/foreground/js/ui/progress_center_panel.js
+++ b/chrome/browser/resources/file_manager/foreground/js/ui/progress_center_panel.js
@@ -24,14 +24,10 @@ function ProgressCenterItemElement(document) {
cancelButton.className = 'cancel';
cancelButton.setAttribute('tabindex', '-1');
- var progressFrame = document.createElement('div');
- progressFrame.className = 'progress-frame';
- progressFrame.appendChild(progressBar);
- progressFrame.appendChild(cancelButton);
-
var itemElement = document.createElement('li');
itemElement.appendChild(label);
- itemElement.appendChild(progressFrame);
+ itemElement.appendChild(progressBar);
+ itemElement.appendChild(cancelButton);
return ProgressCenterItemElement.decorate(itemElement);
}
@@ -462,7 +458,7 @@ ProgressCenterPanel.prototype.onClick_ = function(event) {
if (this.cancelCallback) {
var id = event.target.classList.contains('toggle') ?
this.closeView_.getAttribute('data-progress-id') :
- event.target.parentNode.parentNode.getAttribute('data-progress-id');
+ event.target.parentNode.getAttribute('data-progress-id');
this.cancelCallback(id);
}
};

Powered by Google App Engine
This is Rietveld 408576698