Chromium Code Reviews| Index: chrome/common/extensions/docs/examples/api/preferences/allowThirdPartyCookies/popup.html |
| diff --git a/chrome/common/extensions/docs/examples/api/preferences/enableReferrer/popup.html b/chrome/common/extensions/docs/examples/api/preferences/allowThirdPartyCookies/popup.html |
| similarity index 93% |
| copy from chrome/common/extensions/docs/examples/api/preferences/enableReferrer/popup.html |
| copy to chrome/common/extensions/docs/examples/api/preferences/allowThirdPartyCookies/popup.html |
| index dd535010d0667987412d6fb2326f61b130428343..9f74e70d80bd7938a933ab0f479f086c5f6a4df5 100644 |
| --- a/chrome/common/extensions/docs/examples/api/preferences/enableReferrer/popup.html |
| +++ b/chrome/common/extensions/docs/examples/api/preferences/allowThirdPartyCookies/popup.html |
| @@ -2,7 +2,7 @@ |
| <html> |
| <head> |
| <script> |
| -var pref = chrome.experimental.contentSettings.global.referrersEnabled; |
| +var pref = chrome.experimental.contentSettings.global.thirdPartyCookiesAllowed; |
| /** |
| * Returns whether the |levelOfControl| means that the extension can change the |
| @@ -85,7 +85,8 @@ function init() { |
| * @param incognito{boolean} Whether the value is specific to incognito mode. |
| */ |
| function setPrefValue(enabled, incognito) { |
| - pref.set({'value':enabled, 'incognito': incognito}); |
| + var scope = incognito ? 'incognito_session_only' : 'regular'; |
| + pref.set({'value':enabled, 'scope': scope}); |
|
Mike West
2011/07/13 09:05:53
Nit: Needs space between ":" and "enabled".
|
| } |
| /** |
| @@ -112,7 +113,7 @@ function setUseSeparateIncognitoSettings(value) { |
| <body onload="init()"> |
| <div style="width: 300px"> |
| -<input type="checkbox" onclick="setPrefValue(this.checked)" id="regularValue" /> Enable referrers |
| +<input type="checkbox" onclick="setPrefValue(this.checked)" id="regularValue" /> Allow third-party sites to set cookies |
| <div id="incognito" style="display:none"> |
| <input type="checkbox" onclick="setUseSeparateIncognitoSettings(this.checked)" id="useSeparateIncognitoSettings" /> Use separate setting for incognito mode: |