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

Side by Side Diff: chrome/common/extensions/docs/examples/api/preferences/enableReferrer/popup.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, 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script> 4 <script>
5 var cs = chrome.experimental.contentSettings; 5 var pref = chrome.experimental.contentSettings.global.referrersEnabled;
6 var pref = cs.misc.enableReferrers;
7 6
8 /** 7 /**
9 * Returns whether the |levelOfControl| means that the extension can change the 8 * Returns whether the |levelOfControl| means that the extension can change the
10 * preference value. 9 * preference value.
11 * 10 *
12 * @param levelOfControl{string} 11 * @param levelOfControl{string}
13 */ 12 */
14 function settingIsControllable(levelOfControl) { 13 function settingIsControllable(levelOfControl) {
15 return (levelOfControl == "controllable_by_this_extension" || 14 return (levelOfControl == "controllable_by_this_extension" ||
16 levelOfControl == "controlled_by_this_extension"); 15 levelOfControl == "controlled_by_this_extension");
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 <br> 119 <br>
121 <input type="checkbox" onclick="setPrefValue(this.checked, true)" id="incognitoV alue" disabled="disabled"/> Enable referrers in incognito sessions 120 <input type="checkbox" onclick="setPrefValue(this.checked, true)" id="incognitoV alue" disabled="disabled"/> Enable referrers in incognito sessions
122 </div> 121 </div>
123 <div id="incognito-forbidden"> 122 <div id="incognito-forbidden">
124 Select "Allow in incognito" to access incognito preferences 123 Select "Allow in incognito" to access incognito preferences
125 </div> 124 </div>
126 </div> 125 </div>
127 126
128 </body> 127 </body>
129 </html> 128 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698