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

Unified Diff: chrome/common/extensions/docs/static/background_pages.html

Issue 179027: Make a bunch of backlogged breaking changes to the extensions (Closed)
Patch Set: Put chrome.self back Created 11 years, 4 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/static/background_pages.html
diff --git a/chrome/common/extensions/docs/static/background_pages.html b/chrome/common/extensions/docs/static/background_pages.html
index 79ec203aba08b352529c4c067594211bf02c5f85..426dbf70d819c53c7299f73e95ce8c1cf4da173e 100755
--- a/chrome/common/extensions/docs/static/background_pages.html
+++ b/chrome/common/extensions/docs/static/background_pages.html
@@ -39,7 +39,7 @@ only the necessary code to display the toolstrip UI,
with all your extension logic contained in the background page.
You can communicate between your various pages using direct script calls,
similar to how frames can communicate.
-The chrome.self.getViews() function
+The chrome.extension.getViews() function
returns a list of window objects
for every active page belonging to your extension.
</p>
@@ -48,7 +48,7 @@ for every active page belonging to your extension.
<pre>background_page.html (snippet):
function updateUI(checked) {
- var views = chrome.self.getViews();
+ var views = chrome.extension.getViews();
for (var i in views) {
if (views[i].enableCheckbox)
views[i].enableCheckbox(checked);
« no previous file with comments | « chrome/browser/extensions/extension_messages_unittest.cc ('k') | chrome/renderer/extensions/extension_process_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698