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

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

Issue 8490014: [filebrowser] Historgram for the file browser's open time. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Added comments Created 9 years, 1 month 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/main.html
diff --git a/chrome/browser/resources/file_manager/main.html b/chrome/browser/resources/file_manager/main.html
index 7f293933efd5bd99cf7c755c2265a4abb9cdbaed..117c18e48852eb840cbee016307fcdc7b9d6c722 100644
--- a/chrome/browser/resources/file_manager/main.html
+++ b/chrome/browser/resources/file_manager/main.html
@@ -6,6 +6,10 @@
-->
<html>
<head>
+ <!-- metrics.js initiates load performance tracking
+ so we want to parse it as early as possible -->
+ <script src="js/metrics.js"></script>
+
<script>
// Resources from shared locations are loaded dynamically, so we can
// get them from file:// when running as a normal web page, and from
@@ -83,6 +87,12 @@
<script src="js/main.js"></script>
<script src="js/metadata_provider.js"></script>
+ <!-- For accurate load performance tracking
+ place all scripts above this line -->
+ <script>
+ metrics.recordTime('ScriptParse');
+ </script>
+
<!-- We have to set some default title, or chrome will use the page
-- name. As soon as we init and change to a directory, we'll use
-- the directory as the page title. Until then, have a unicode glyph
« no previous file with comments | « chrome/browser/resources/file_manager/js/mock_chrome.js ('k') | chrome/browser/resources/file_manager/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698