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

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

Issue 11410040: Delete WebUI for web intents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Return value from flag for profile disablement Created 8 years, 1 month 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 // 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 if (!loadTimeData.getBoolean('newContentSettings')) { 5 if (!loadTimeData.getBoolean('newContentSettings')) {
6 6
7 cr.define('options', function() { 7 cr.define('options', function() {
8 /** @const */ var OptionsPage = options.OptionsPage; 8 /** @const */ var OptionsPage = options.OptionsPage;
9 9
10 ////////////////////////////////////////////////////////////////////////////// 10 //////////////////////////////////////////////////////////////////////////////
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 if (cr.isChromeOS) 69 if (cr.isChromeOS)
70 UIAccountTweaks.applyGuestModeVisibility(document); 70 UIAccountTweaks.applyGuestModeVisibility(document);
71 71
72 // Cookies filter page --------------------------------------------------- 72 // Cookies filter page ---------------------------------------------------
73 $('show-cookies-button').onclick = function(event) { 73 $('show-cookies-button').onclick = function(event) {
74 chrome.send('coreOptionsUserMetricsAction', ['Options_ShowCookies']); 74 chrome.send('coreOptionsUserMetricsAction', ['Options_ShowCookies']);
75 OptionsPage.navigateToPage('cookies'); 75 OptionsPage.navigateToPage('cookies');
76 }; 76 };
77 77
78 var intentsSection = $('intents-section');
79 if (!loadTimeData.getBoolean('enable_web_intents') && intentsSection)
80 intentsSection.parentNode.removeChild(intentsSection);
81
82 $('content-settings-overlay-confirm').onclick = 78 $('content-settings-overlay-confirm').onclick =
83 OptionsPage.closeOverlay.bind(OptionsPage); 79 OptionsPage.closeOverlay.bind(OptionsPage);
84 80
85 $('pepper-flash-cameramic-section').style.display = 'none'; 81 $('pepper-flash-cameramic-section').style.display = 'none';
86 $('pepper-flash-cameramic-exceptions-div').style.display = 'none'; 82 $('pepper-flash-cameramic-exceptions-div').style.display = 'none';
87 }, 83 },
88 }; 84 };
89 85
90 ContentSettings.updateHandlersEnabledRadios = function(enabled) { 86 ContentSettings.updateHandlersEnabledRadios = function(enabled) {
91 var selector = '#content-settings-page input[type=radio][value=' + 87 var selector = '#content-settings-page input[type=radio][value=' +
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 } 181 }
186 182
187 // Export 183 // Export
188 return { 184 return {
189 ContentSettings: ContentSettings 185 ContentSettings: ContentSettings
190 }; 186 };
191 187
192 }); 188 });
193 189
194 } 190 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/content_settings.html ('k') | chrome/browser/ui/intents/web_intents_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698