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

Unified Diff: chrome/common/extensions/docs/examples/extensions/email_this_page/content_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/common/extensions/docs/examples/extensions/email_this_page/content_script.js
diff --git a/chrome/common/extensions/docs/examples/extensions/email_this_page/content_script.js b/chrome/common/extensions/docs/examples/extensions/email_this_page/content_script.js
index fc0ef93c14d61849cb8e8fd0c668907aca83adc6..08744ef904c9aa2bc6d2584df300e2355a248efd 100644
--- a/chrome/common/extensions/docs/examples/extensions/email_this_page/content_script.js
+++ b/chrome/common/extensions/docs/examples/extensions/email_this_page/content_script.js
@@ -1,12 +1,10 @@
-/*
- * Copyright (c) 2009 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.
- */
+// Copyright (c) 2009 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.
var additionalInfo = {
"title": document.title,
"selection": window.getSelection().toString()
};
-chrome.extension.connect().postMessage(additionalInfo);
+chrome.runtime.connect().postMessage(additionalInfo);

Powered by Google App Engine
This is Rietveld 408576698