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

Unified Diff: chrome/test/data/extensions/api_test/content_settings/onchange/test.html

Issue 7031063: Extension API: Rename contentSettings.misc to .global and rename preferences under it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 9 years, 7 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/test/data/extensions/api_test/content_settings/onchange/test.html
diff --git a/chrome/test/data/extensions/api_test/content_settings/onchange/test.html b/chrome/test/data/extensions/api_test/content_settings/onchange/test.html
index c510f6e30860f8881e2d0dc25f2ab45e5a4de6fb..20be7d6fbd88348b14df1e430d0152f580e0751d 100644
--- a/chrome/test/data/extensions/api_test/content_settings/onchange/test.html
+++ b/chrome/test/data/extensions/api_test/content_settings/onchange/test.html
@@ -22,73 +22,73 @@ chrome.test.runTests([
function changeDefault() {
// Changing the regular settings when no incognito-specific settings are
// defined should fire two events.
- listenUntil(cs.misc.blockThirdPartyCookies.onChange, [{
- 'value': true,
+ listenUntil(cs.global.thirdPartyCookiesAllowed.onChange, [{
+ 'value': false,
'levelOfControl': 'controlled_by_this_extension'
},
{
- 'value': true,
+ 'value': false,
'incognitoSpecific': false,
'levelOfControl': 'controlled_by_this_extension'
}]);
- cs.misc.blockThirdPartyCookies.set({
- 'value':true
+ cs.global.thirdPartyCookiesAllowed.set({
+ 'value':false
}, chrome.test.callbackPass());
},
function changeIncognitoOnly() {
- listenUntil(cs.misc.blockThirdPartyCookies.onChange, [{
- 'value': false,
+ listenUntil(cs.global.thirdPartyCookiesAllowed.onChange, [{
+ 'value': true,
'incognitoSpecific': true,
'levelOfControl': 'controlled_by_this_extension'
}]);
- cs.misc.blockThirdPartyCookies.set({
- 'value': false,
+ cs.global.thirdPartyCookiesAllowed.set({
+ 'value': true,
'scope': 'incognito_persistent'
}, chrome.test.callbackPass());
},
function changeDefaultOnly() {
- listenUntil(cs.misc.blockThirdPartyCookies.onChange, [{
- 'value': false,
+ listenUntil(cs.global.thirdPartyCookiesAllowed.onChange, [{
+ 'value': true,
'levelOfControl': 'controlled_by_this_extension'
}]);
- cs.misc.blockThirdPartyCookies.set({
- 'value': false
+ cs.global.thirdPartyCookiesAllowed.set({
+ 'value': true
}, chrome.test.callbackPass());
},
function changeIncognitoOnlyBack() {
- // Change the incognito setting back to true so that we get an event when
+ // Change the incognito setting back to false so that we get an event when
// clearing the value.
- listenUntil(cs.misc.blockThirdPartyCookies.onChange, [{
- 'value': true,
+ listenUntil(cs.global.thirdPartyCookiesAllowed.onChange, [{
+ 'value': false,
'incognitoSpecific': true,
'levelOfControl': 'controlled_by_this_extension'
}]);
- cs.misc.blockThirdPartyCookies.set({
- 'value': true,
+ cs.global.thirdPartyCookiesAllowed.set({
+ 'value': false,
'scope': 'incognito_persistent'
}, chrome.test.callbackPass());
},
function clearIncognito() {
- listenUntil(cs.misc.blockThirdPartyCookies.onChange, [{
- 'value': false,
+ listenUntil(cs.global.thirdPartyCookiesAllowed.onChange, [{
+ 'value': true,
'incognitoSpecific': false,
'levelOfControl': 'controlled_by_this_extension'
}]);
- cs.misc.blockThirdPartyCookies.clear({
+ cs.global.thirdPartyCookiesAllowed.clear({
'scope': 'incognito_persistent'
}, chrome.test.callbackPass());
},
function clearDefault() {
- listenUntil(cs.misc.blockThirdPartyCookies.onChange, [{
- 'value': false,
+ listenUntil(cs.global.thirdPartyCookiesAllowed.onChange, [{
+ 'value': true,
'levelOfControl': 'controllable_by_this_extension'
},
{
- 'value': false,
+ 'value': true,
'incognitoSpecific': false,
'levelOfControl': 'controllable_by_this_extension'
}]);
- cs.misc.blockThirdPartyCookies.clear({}, chrome.test.callbackPass());
+ cs.global.thirdPartyCookiesAllowed.clear({}, chrome.test.callbackPass());
}
]);

Powered by Google App Engine
This is Rietveld 408576698