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

Side by Side Diff: chrome/browser/resources/options/website_settings_edit_page.js

Issue 504773004: Add Cookie permission to Website Settings single side view. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments addressed. Created 6 years, 3 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 cr.define('options.WebsiteSettings', function() { 5 cr.define('options.WebsiteSettings', function() {
6 /** @const */ var Page = cr.ui.pageManager.Page; 6 /** @const */ var Page = cr.ui.pageManager.Page;
7 7
8 ///////////////////////////////////////////////////////////////////////////// 8 /////////////////////////////////////////////////////////////////////////////
9 // WebsiteSettingsEditor class: 9 // WebsiteSettingsEditor class:
10 10
11 /** 11 /**
12 * Encapsulated handling of the website settings editor page. 12 * Encapsulated handling of the website settings editor page.
13 * @constructor 13 * @constructor
14 */ 14 */
15 function WebsiteSettingsEditor() { 15 function WebsiteSettingsEditor() {
16 Page.call(this, 'websiteEdit', 16 Page.call(this, 'websiteEdit',
17 loadTimeData.getString('websitesOptionsPageTabTitle'), 17 loadTimeData.getString('websitesOptionsPageTabTitle'),
18 'website-settings-edit-page'); 18 'website-settings-edit-page');
19 this.permissions = ['geolocation', 'notifications', 'media-stream']; 19 this.permissions = ['geolocation', 'notifications', 'media-stream',
20 'cookies'];
20 } 21 }
21 22
22 cr.addSingletonGetter(WebsiteSettingsEditor); 23 cr.addSingletonGetter(WebsiteSettingsEditor);
23 24
24 WebsiteSettingsEditor.prototype = { 25 WebsiteSettingsEditor.prototype = {
25 __proto__: Page.prototype, 26 __proto__: Page.prototype,
26 27
27 28
28 /** @override */ 29 /** @override */
29 initializePage: function() { 30 initializePage: function() {
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 permissions, 104 permissions,
104 showPage); 105 showPage);
105 }; 106 };
106 107
107 // Export 108 // Export
108 return { 109 return {
109 WebsiteSettingsEditor: WebsiteSettingsEditor 110 WebsiteSettingsEditor: WebsiteSettingsEditor
110 }; 111 };
111 112
112 }); 113 });
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/resources/options/website_settings_edit_site.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698