| OLD | NEW | 
|---|
| (Empty) |  | 
|  | 1 <script> | 
|  | 2 var last_file_entries = null; | 
|  | 3 | 
|  | 4 function getLastFileEntries() { | 
|  | 5   return last_file_entries; | 
|  | 6 } | 
|  | 7 | 
|  | 8 chrome.fileBrowserHandler.onExecute.addListener( | 
|  | 9   function(id, file_entries) { | 
|  | 10     if (id != "TestAction") { | 
|  | 11       chrome.test.fail("Unexpected action id: " + id); | 
|  | 12       return; | 
|  | 13     } | 
|  | 14     if (!file_entries || file_entries.length != 1) { | 
|  | 15       chrome.test.fail("Unexpected file url list"); | 
|  | 16       return; | 
|  | 17     } | 
|  | 18     last_file_entries = file_entries; | 
|  | 19     // Create a new tab | 
|  | 20     chrome.tabs.create({ | 
|  | 21       url: "tab.html" | 
|  | 22     }); | 
|  | 23   }); | 
|  | 24 | 
|  | 25 chrome.test.succeed(); | 
|  | 26 | 
|  | 27 </script> | 
| OLD | NEW | 
|---|