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

Unified Diff: chrome/test/data/extensions/api_test/filesystem_handler/tab.js

Issue 11745015: Update references to the extension messaging APIs to point to the "runtime" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 11 months 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 side-by-side diff with in-line comments
Download patch
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) {});

Powered by Google App Engine
This is Rietveld 408576698