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

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

Issue 13707002: Introduce a file-manager-new-ui flag for the new UI of Files.app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed. 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/util.js
diff --git a/chrome/browser/resources/file_manager/js/util.js b/chrome/browser/resources/file_manager/js/util.js
index c628a2e31bf2ab3387f46ad718daaef18c20c172..650be715ec9a4cd1ffdaa250fdaabf71ecb49bcb 100644
--- a/chrome/browser/resources/file_manager/js/util.js
+++ b/chrome/browser/resources/file_manager/js/util.js
@@ -815,6 +815,16 @@ util.platform = {
},
/**
+ * @return {boolean} True for the new ui.
+ */
+ newUI: function() {
+ if (!util.platform.v2())
+ return false;
+ var manifest = chrome.runtime.getManifest();
+ return manifest.version >= 3.0;
+ },
+
+ /**
* @param {function(Object)} callback Function accepting a preference map.
*/
getPreferences: function(callback) {
« no previous file with comments | « chrome/browser/resources/file_manager/js/background.js ('k') | chrome/browser/resources/file_manager/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698