blob: 329975937d007ccd77067ca958f3532351969de2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// 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.
/**
* Global fileManager reference useful for poking at from the console.
*/
var fileManager;
/**
* Kick off the file manager dialog.
*
* Called by main.html after the dom has been parsed.
*/
function init() {
FileManager.initStrings(function() {
metrics.startInterval('Load.Construct');
fileManager = new FileManager(document.body);
metrics.recordInterval('Load.Construct');
// We're ready to run. Tests can monitor for this state with
// ExtensionTestMessageListener listener("ready");
// ASSERT_TRUE(listener.WaitUntilSatisfied());
chrome.test.sendMessage('ready');
});
}
document.addEventListener('DOMContentLoaded', init);
metrics.recordInterval('Load.Script'); // Must be the last line.
|