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> |