| OLD | NEW |
| 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 } |
| OLD | NEW |