Index: chrome/test/data/extensions/api_test/filesystem_handler/tab.js |
diff --git a/chrome/test/data/extensions/api_test/filesystem_handler/tab.js b/chrome/test/data/extensions/api_test/filesystem_handler/tab.js |
index 4cde055e43bcbd3fac05621c2a56ec5a6db5f9e8..538c5669fb5a11fd104e41716ad391fe5c3ede77 100644 |
--- a/chrome/test/data/extensions/api_test/filesystem_handler/tab.js |
+++ b/chrome/test/data/extensions/api_test/filesystem_handler/tab.js |
@@ -46,7 +46,7 @@ function errorCallback(error) { |
}; |
} |
- chrome.extension.sendMessage(fileBrowserExtensionId, |
+ chrome.runtime.sendMessage(fileBrowserExtensionId, |
{fileContent: null, |
error: {message: "File handler error: " + msg}}, |
function(response) {}); |
@@ -57,14 +57,14 @@ function onGotEntryByUrl(entry) { |
var reader = new FileReader(); |
reader.onloadend = function(e) { |
if (reader.result != expectedContent) { |
- chrome.extension.sendMessage( |
+ chrome.runtime.sendMessage( |
fileBrowserExtensionId, |
{fileContent: null, |
error: {message: "File content does not match."}}, |
function(response) {}); |
} else { |
// Send data back to the file browser extension |
- chrome.extension.sendMessage( |
+ chrome.runtime.sendMessage( |
fileBrowserExtensionId, |
{fileContent: reader.result, error: null}, |
function(response) {}); |
@@ -117,7 +117,7 @@ function tryReadingReceivedFile(entry, evt) { |
function runFileSystemHandlerTest(entries) { |
if (!entries || entries.length != 1 || !entries[0]) { |
- chrome.extension.sendMessage( |
+ chrome.runtime.sendMessage( |
fileBrowserExtensionId, |
{fileContent: null, error: "Invalid file entries."}, |
function(response) {}); |