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

Unified Diff: chrome/common/extensions/docs/templates/intros/privacy.html

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/templates/intros/privacy.html
diff --git a/chrome/common/extensions/docs/templates/intros/privacy.html b/chrome/common/extensions/docs/templates/intros/privacy.html
index c7657ea0640260e616330f798fd8369d3f8d3577..2a80ae579e0e1d18f60f5db4d0d862fd4d2501cc 100644
--- a/chrome/common/extensions/docs/templates/intros/privacy.html
+++ b/chrome/common/extensions/docs/templates/intros/privacy.html
@@ -73,10 +73,10 @@
<pre>chrome.privacy.services.autofillEnabled.get({}, function(details) {
if (details.levelOfControl === 'controllable_by_this_extension') {
chrome.privacy.services.autofillEnabled.set({ value: true }, function() {
- if (chrome.extension.lastError === undefined)
+ if (chrome.runtime.lastError === undefined)
console.log("Hooray, it worked!");
else
- console.log("Sadness!", chrome.extension.lastError);
+ console.log("Sadness!", chrome.runtime.lastError);
}
}
});</pre>
@@ -179,10 +179,10 @@
<pre>chrome.privacy.services.autofillEnabled.get({}, function(details) {
if (details.levelOfControl === 'controllable_by_this_extension') {
chrome.privacy.services.autofillEnabled.set({ value: true }, function() {
- if (chrome.extension.lastError === undefined)
+ if (chrome.runtime.lastError === undefined)
console.log("Hooray, it worked!");
else
- console.log("Sadness!", chrome.extension.lastError);
+ console.log("Sadness!", chrome.runtime.lastError);
}
}
});</pre>
@@ -206,4 +206,4 @@
<p>
For example code, see the
<a href="samples.html#privacy">Privacy API samples</a>.
-</p>
+</p>

Powered by Google App Engine
This is Rietveld 408576698