Index: chrome/browser/resources/file_manager/js/util.js |
diff --git a/chrome/browser/resources/file_manager/js/util.js b/chrome/browser/resources/file_manager/js/util.js |
index c3a7a3b63c7531ac030e2e16c1e4047ae38d93cf..4f502c09b323fa22dfb9122cdbc1d6b39d5373c0 100644 |
--- a/chrome/browser/resources/file_manager/js/util.js |
+++ b/chrome/browser/resources/file_manager/js/util.js |
@@ -854,7 +854,7 @@ util.platform = { |
* Close current window. |
*/ |
closeWindow: function() { |
- if (this.v2()) { |
+ if (util.platform.v2()) { |
window.close(); |
} else { |
chrome.tabs.getCurrent(function(tab) { |
@@ -867,7 +867,7 @@ util.platform = { |
* @return {string} Applicaton id. |
*/ |
getAppId: function() { |
- if (this.v2()) { |
+ if (util.platform.v2()) { |
return chrome.runtime.id; |
} else { |
return chrome.extension.getURL('').split('/')[2]; |
@@ -879,7 +879,7 @@ util.platform = { |
* @return {string} Extension-based URL. |
*/ |
getURL: function(path) { |
- if (this.v2()) { |
+ if (util.platform.v2()) { |
return chrome.runtime.getURL(path); |
} else { |
return chrome.extension.getURL(path); |