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

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

Issue 10698015: Merge 143578 - [filemanager] Moved summarizeSelection call sooner in initialization. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1180/src/
Patch Set: Created 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/file_manager/js/file_manager.js
===================================================================
--- chrome/browser/resources/file_manager/js/file_manager.js (revision 144541)
+++ chrome/browser/resources/file_manager/js/file_manager.js (working copy)
@@ -502,6 +502,8 @@
this.addEventListener('selection-summarized',
this.onSelectionSummarized_.bind(this));
+ this.summarizeSelection_();
+
this.setupCurrentDirectory_(true /* page loading */);
var stateChangeHandler =
@@ -512,8 +514,6 @@
stateChangeHandler);
stateChangeHandler();
- this.summarizeSelection_();
-
var sortField =
window.localStorage['sort-field-' + this.dialogType_] ||
'modificationTime';
@@ -4232,7 +4232,7 @@
if (this.dialogType_ == FileManager.DialogType.SELECT_FOLDER &&
selectedIndexes.length == 0) {
- var url = this.getSearchOrCurrentDirectoryURL();
+ var url = this.getCurrentDirectoryURL();
var singleSelection = {
urls: [url],
multiple: false,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698