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

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

Issue 1105333003: Fix potential flakiness in Files.app test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 | ui/file_manager/file_manager/foreground/js/ui/banners.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/foreground/js/file_manager.js
diff --git a/ui/file_manager/file_manager/foreground/js/file_manager.js b/ui/file_manager/file_manager/foreground/js/file_manager.js
index 14fc3b7e103cb02a285fab1dc8f70279a7958408..432f3deb27b045aeba12f7b9c2e79b413fb82dcf 100644
--- a/ui/file_manager/file_manager/foreground/js/file_manager.js
+++ b/ui/file_manager/file_manager/foreground/js/file_manager.js
@@ -598,6 +598,9 @@ FileManager.prototype = /** @struct */ {
this.initializeQueue_.add(
this.initFileSystemUI_.bind(this),
['initAdditionalUI', 'initSettings'], 'initFileSystemUI');
+ this.initializeQueue_.add(
+ this.initUIFocus_.bind(this),
+ ['initAdditionalUI', 'initFileSystemUI'], 'initUIFocus');
// Run again just in case if all pending closures have completed and the
// queue has stopped and monitor the completion.
@@ -804,6 +807,17 @@ FileManager.prototype = /** @struct */ {
};
/**
+ * One-time initialization of focus. This should run at the last of UI
+ * initialization.
+ *
+ * @private
+ */
+ FileManager.prototype.initUIFocus_ = function(callback) {
+ this.ui_.initUIFocus();
+ callback();
+ };
+
+ /**
* One-time initialization of import history observer. Provides
* the glue that updates the UI when history changes.
*
« no previous file with comments | « no previous file | ui/file_manager/file_manager/foreground/js/ui/banners.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698