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

Side by Side Diff: chrome/browser/resources/file_manager/js/main.js

Issue 8819013: Add UMA metrics to Photo Editor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Better trace Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * Global fileManager reference useful for poking at from the console. 6 * Global fileManager reference useful for poking at from the console.
7 */ 7 */
8 var fileManager; 8 var fileManager;
9 9
10 /** 10 /**
11 * Kick off the file manager dialog. 11 * Kick off the file manager dialog.
12 * 12 *
13 * Called by main.html after the dom has been parsed. 13 * Called by main.html after the dom has been parsed.
14 */ 14 */
15 function init() { 15 function init() {
16 FileManager.initStrings(function () { 16 FileManager.initStrings(function () {
17 metrics.startInterval('Load.Construct'); 17 metrics.startInterval('Load.Construct');
18 fileManager = new FileManager(document.body); 18 fileManager = new FileManager(document.body);
19 metrics.recordTime('Load.Construct'); 19 metrics.recordInterval('Load.Construct');
20 // We're ready to run. Tests can monitor for this state with 20 // We're ready to run. Tests can monitor for this state with
21 // ExtensionTestMessageListener listener("ready"); 21 // ExtensionTestMessageListener listener("ready");
22 // ASSERT_TRUE(listener.WaitUntilSatisfied()); 22 // ASSERT_TRUE(listener.WaitUntilSatisfied());
23 chrome.test.sendMessage('ready'); 23 chrome.test.sendMessage('ready');
24 }); 24 });
25 } 25 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698