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

Unified Diff: ui/file_manager/file_manager/foreground/js/main.js

Issue 645853013: Remove some platform specific stuff from views. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 2 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: ui/file_manager/file_manager/foreground/js/main.js
diff --git a/ui/file_manager/file_manager/foreground/js/main.js b/ui/file_manager/file_manager/foreground/js/main.js
deleted file mode 100644
index 140b2e0a2c5e8d8062b8c4e27051a5e955b1d18d..0000000000000000000000000000000000000000
--- a/ui/file_manager/file_manager/foreground/js/main.js
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-'use strict';
-
-/**
- * @type {FileManager}
- */
-var fileManager;
-
-/**
- * Indicates if the DOM and scripts have been already loaded.
- * @type {boolean}
- */
-var pageLoaded = false;
-
-/**
- * Kick off the file manager dialog.
- * Called by main.html after the DOM has been parsed.
- */
-function init() {
- // Initializes UI and starts the File Manager dialog.
- fileManager.initializeUI(document.body, function() {
- util.testSendMessage('ready');
- metrics.recordInterval('Load.Total');
- });
-}
-
-// Create the File Manager object. Note, that the DOM, nor any external
-// scripts may not be ready yet.
-fileManager = new FileManager();
-
-// Initialize the core stuff, which doesn't require access to DOM nor to
-// additional scripts.
-fileManager.initializeCore();
-
-// Final initialization is performed after all scripts and DOM is loaded.
-util.addPageLoadHandler(init);
-
-metrics.recordInterval('Load.Script'); // Must be the last line.

Powered by Google App Engine
This is Rietveld 408576698