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

Side by Side Diff: chrome/test/data/extensions/api_test/preference/standard/test.js

Issue 290123003: Exposes passwordSavingEnabled API from chrome privacy preference extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 6 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 unified diff | Download patch
« no previous file with comments | « chrome/common/pref_names.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Preferences API test 5 // Preferences API test
6 // Run with browser_tests --gtest_filter=ExtensionApiTest.PreferenceApi 6 // Run with browser_tests --gtest_filter=ExtensionApiTest.PreferenceApi
7 7
8 var preferences_to_test = [ 8 var preferences_to_test = [
9 { 9 {
10 root: chrome.privacy.network, 10 root: chrome.privacy.network,
11 preferences: [ 11 preferences: [
12 'networkPredictionEnabled' 12 'networkPredictionEnabled'
13 ] 13 ]
14 }, 14 },
15 { 15 {
16 root: chrome.privacy.websites, 16 root: chrome.privacy.websites,
17 preferences: [ 17 preferences: [
18 'thirdPartyCookiesAllowed', 18 'thirdPartyCookiesAllowed',
19 'hyperlinkAuditingEnabled', 19 'hyperlinkAuditingEnabled',
20 'referrersEnabled', 20 'referrersEnabled',
21 'protectedContentEnabled' 21 'protectedContentEnabled'
22 ] 22 ]
23 }, 23 },
24 { 24 {
25 root: chrome.privacy.services, 25 root: chrome.privacy.services,
26 preferences: [ 26 preferences: [
27 'alternateErrorPagesEnabled', 27 'alternateErrorPagesEnabled',
28 'autofillEnabled', 28 'autofillEnabled',
29 'passwordSavingEnabled',
29 'safeBrowsingEnabled', 30 'safeBrowsingEnabled',
30 'searchSuggestEnabled', 31 'searchSuggestEnabled',
31 'spellingServiceEnabled', 32 'spellingServiceEnabled',
32 'translationServiceEnabled' 33 'translationServiceEnabled'
33 ] 34 ]
34 }, 35 },
35 ]; 36 ];
36 37
37 function expect(expected, message) { 38 function expect(expected, message) {
38 return chrome.test.callbackPass(function(value) { 39 return chrome.test.callbackPass(function(value) {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 prefGetter.bind(preferences_to_test[i].root)); 73 prefGetter.bind(preferences_to_test[i].root));
73 } 74 }
74 }, 75 },
75 function setGlobals() { 76 function setGlobals() {
76 for (var i = 0; i < preferences_to_test.length; i++) { 77 for (var i = 0; i < preferences_to_test.length; i++) {
77 preferences_to_test[i].preferences.forEach( 78 preferences_to_test[i].preferences.forEach(
78 prefSetter.bind(preferences_to_test[i].root)); 79 prefSetter.bind(preferences_to_test[i].root));
79 } 80 }
80 } 81 }
81 ]); 82 ]);
OLDNEW
« no previous file with comments | « chrome/common/pref_names.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698