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

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

Issue 12257002: [Cleanup] Files.app: Remove 'this' from class methods. #1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | « chrome/browser/resources/file_manager/js/mock_chrome.js ('k') | 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/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);
« no previous file with comments | « chrome/browser/resources/file_manager/js/mock_chrome.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698