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

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

Issue 12790007: Fix File Copy Manager Wrapper to work in the strict mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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/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_;
};
/**

Powered by Google App Engine
This is Rietveld 408576698