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

Unified Diff: chrome/common/extensions/docs/examples/api/preferences/enableReferrer/popup.html

Issue 7310004: Add sample extension to allow/block third-party cookies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 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/api/preferences/enableReferrer/popup.html
diff --git a/chrome/common/extensions/docs/examples/api/preferences/enableReferrer/popup.html b/chrome/common/extensions/docs/examples/api/preferences/enableReferrer/popup.html
index dd535010d0667987412d6fb2326f61b130428343..d967c8de2e1dfaf778ad81ceac15ab84298298ff 100644
--- a/chrome/common/extensions/docs/examples/api/preferences/enableReferrer/popup.html
+++ b/chrome/common/extensions/docs/examples/api/preferences/enableReferrer/popup.html
@@ -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 a space between ":" and "enabled".
}
/**

Powered by Google App Engine
This is Rietveld 408576698