| 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.
|
|
|