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

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

Issue 543983005: Add a dropdown to change the default content setting to the Website Settings page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix CrOS build error. 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
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 }; 148 };
149 149
150 WebsiteSettingsEditor.populateOrigin = function(localStorage, batteryUsage, 150 WebsiteSettingsEditor.populateOrigin = function(localStorage, batteryUsage,
151 permissions, showPage) { 151 permissions, showPage) {
152 WebsiteSettingsEditor.getInstance().populateOrigin_(localStorage, 152 WebsiteSettingsEditor.getInstance().populateOrigin_(localStorage,
153 batteryUsage, 153 batteryUsage,
154 permissions, 154 permissions,
155 showPage); 155 showPage);
156 }; 156 };
157 157
158 WebsiteSettingsEditor.showEditPage = function(url) {
159 WebsiteSettingsEditor.getInstance().populatePage(url);
160 };
161
158 // Export 162 // Export
159 return { 163 return {
160 WebsiteSettingsEditor: WebsiteSettingsEditor 164 WebsiteSettingsEditor: WebsiteSettingsEditor
161 }; 165 };
162 166
163 }); 167 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/website_settings.js ('k') | chrome/browser/ui/webui/options/content_settings_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698