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

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

Issue 10068007: Implement Content Security Policy for the File Manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 8 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
index cb35835219b5f1438c0d12d8f3546cc7a7cdb8b5..329975937d007ccd77067ca958f3532351969de2 100644
--- a/chrome/browser/resources/file_manager/js/main.js
+++ b/chrome/browser/resources/file_manager/js/main.js
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// 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.
@@ -13,7 +13,7 @@ var fileManager;
* Called by main.html after the dom has been parsed.
*/
function init() {
- FileManager.initStrings(function () {
+ FileManager.initStrings(function() {
metrics.startInterval('Load.Construct');
fileManager = new FileManager(document.body);
metrics.recordInterval('Load.Construct');
@@ -23,3 +23,7 @@ function init() {
chrome.test.sendMessage('ready');
});
}
+
+document.addEventListener('DOMContentLoaded', init);
+
+metrics.recordInterval('Load.Script'); // Must be the last line.

Powered by Google App Engine
This is Rietveld 408576698