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

Unified Diff: chrome/test/data/extensions/api_test/executescript/in_frame/script.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/executescript/in_frame/script.js
diff --git a/chrome/test/data/extensions/api_test/executescript/in_frame/script.js b/chrome/test/data/extensions/api_test/executescript/in_frame/script.js
index a4efa64bbe0883d68a30ee63d828ca0caa594bec..59555b3ce19daac9aecaf896e5718bc198399930 100644
--- a/chrome/test/data/extensions/api_test/executescript/in_frame/script.js
+++ b/chrome/test/data/extensions/api_test/executescript/in_frame/script.js
@@ -1,3 +1,7 @@
+// Copyright (c) 2013 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.
+
function getStyle(elem, name) {
if (document.defaultView && document.defaultView.getComputedStyle) {
name = name.toLowerCase();
@@ -15,5 +19,5 @@ function getStyle(elem, name) {
var bElement = document.getElementById('test2');
var display = getStyle(bElement, 'display').toLowerCase();
-var extensionPort = chrome.extension.connect();
+var extensionPort = chrome.runtime.connect();
extensionPort.postMessage({message: display});

Powered by Google App Engine
This is Rietveld 408576698