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

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

Issue 16207004: Files.app: Fix errors when launching Files.app via "chrome://files" (2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/util.js
diff --git a/chrome/browser/resources/file_manager/js/util.js b/chrome/browser/resources/file_manager/js/util.js
index 858eb4917c5ef695e1f91e6c9714327b41edabe1..978518d598ac56635be27da1e64c14f05e3c8c33 100644
--- a/chrome/browser/resources/file_manager/js/util.js
+++ b/chrome/browser/resources/file_manager/js/util.js
@@ -804,6 +804,16 @@ util.platform = {
},
/**
+ * @return {boolean} True if the files.app is running as AppsV2. False if
mtomasz 2013/06/04 06:38:44 nit: the files.app -> Files.app (for consistency)
yoshiki 2013/06/04 06:57:34 Done.
+ * running via "chrome://files".
+ */
+ runningAsApps: function() {
mtomasz 2013/06/04 06:38:44 This naming is confusing. Files.app in chrome://fi
yoshiki 2013/06/04 06:57:34 Done.
+ if (!util.platform.v2() || !util.platform.newUI())
mtomasz 2013/06/04 06:38:44 Remove util.platform.newUI() check?
yoshiki 2013/06/04 06:57:34 Done.
+ return false;
+ return (window.appID) ? true : false;
mtomasz 2013/06/04 06:38:44 ... -> return !!window.appID ?
yoshiki 2013/06/04 06:57:34 Refactored.
+ },
+
+ /**
* @return {boolean} True for the new ui.
*/
newUI: function() {

Powered by Google App Engine
This is Rietveld 408576698