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

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

Issue 39123003: [Files.app] Split the JavaScript files into subdirectories: common, background, and foreground (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed test failure. Created 7 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: chrome/browser/resources/file_manager/js/main.js
diff --git a/chrome/browser/resources/file_manager/js/main.js b/chrome/browser/resources/file_manager/js/main.js
deleted file mode 100644
index f32c0a1ef470a3e04654a2eb1edaa7b7c9f37854..0000000000000000000000000000000000000000
--- a/chrome/browser/resources/file_manager/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() {
- chrome.test.sendMessage('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