Index: chrome/browser/resources/file_manager/js/file_copy_manager_wrapper.js |
diff --git a/chrome/browser/resources/file_manager/js/file_copy_manager_wrapper.js b/chrome/browser/resources/file_manager/js/file_copy_manager_wrapper.js |
index f7ed30f1f5062fe18d5a3262f8f18687e5e4784f..9446c651c4eb744ee40f22c26706fad8ecbe970a 100644 |
--- a/chrome/browser/resources/file_manager/js/file_copy_manager_wrapper.js |
+++ b/chrome/browser/resources/file_manager/js/file_copy_manager_wrapper.js |
@@ -4,8 +4,6 @@ |
'use strict'; |
-var fileCopyManagerWrapper = null; |
- |
/** |
* While FileCopyManager is run in the background page, this class is used to |
* communicate with it. |
@@ -49,10 +47,10 @@ FileCopyManagerWrapper.prototype.__proto__ = cr.EventTarget.prototype; |
* @return {FileCopyManagerWrapper} A FileCopyManagerWrapper instance. |
*/ |
FileCopyManagerWrapper.getInstance = function(root) { |
- if (fileCopyManagerWrapper === null) { |
- fileCopyManagerWrapper = new FileCopyManagerWrapper(root); |
- } |
- return fileCopyManagerWrapper; |
+ if (!FileCopyManagerWrapper.instance_) |
+ FileCopyManagerWrapper.instance_ = new FileCopyManagerWrapper(root); |
+ |
+ return FileCopyManagerWrapper.instance_; |
}; |
/** |