| OLD | NEW |
| 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 cr.define('options', function() { | 5 cr.define('options', function() { |
| 6 /** @const */ var OptionsPage = options.OptionsPage; | 6 /** @const */ var OptionsPage = options.OptionsPage; |
| 7 | 7 |
| 8 ////////////////////////////////////////////////////////////////////////////// | 8 ////////////////////////////////////////////////////////////////////////////// |
| 9 // ContentSettings class: | 9 // ContentSettings class: |
| 10 | 10 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 } | 78 } |
| 79 | 79 |
| 80 if (cr.isChromeOS) | 80 if (cr.isChromeOS) |
| 81 UIAccountTweaks.applyGuestModeVisibility(document); | 81 UIAccountTweaks.applyGuestModeVisibility(document); |
| 82 | 82 |
| 83 // Cookies filter page --------------------------------------------------- | 83 // Cookies filter page --------------------------------------------------- |
| 84 $('show-cookies-button').onclick = function(event) { | 84 $('show-cookies-button').onclick = function(event) { |
| 85 chrome.send('coreOptionsUserMetricsAction', ['Options_ShowCookies']); | 85 chrome.send('coreOptionsUserMetricsAction', ['Options_ShowCookies']); |
| 86 OptionsPage.navigateToPage('cookies'); | 86 OptionsPage.navigateToPage('cookies'); |
| 87 }; | 87 }; |
| 88 $('show-app-cookies-button').onclick = function(event) { |
| 89 OptionsPage.navigateToPage('app-cookies'); |
| 90 }; |
| 88 | 91 |
| 89 var intentsSection = $('intents-section'); | 92 var intentsSection = $('intents-section'); |
| 90 if (!loadTimeData.getBoolean('enable_web_intents') && intentsSection) | 93 if (!loadTimeData.getBoolean('enable_web_intents') && intentsSection) |
| 91 intentsSection.parentNode.removeChild(intentsSection); | 94 intentsSection.parentNode.removeChild(intentsSection); |
| 92 | 95 |
| 93 if (loadTimeData.getBoolean('enable_restore_session_state')) { | 96 if (loadTimeData.getBoolean('enable_restore_session_state')) { |
| 94 this.sessionRestoreEnabled = true; | 97 this.sessionRestoreEnabled = true; |
| 95 this.updateSessionRestoreContentSettings(); | 98 this.updateSessionRestoreContentSettings(); |
| 96 } | 99 } |
| 97 | 100 |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 $('pepper-flash-cameramic-section').style.display = ''; | 240 $('pepper-flash-cameramic-section').style.display = ''; |
| 238 $('pepper-flash-cameramic-exceptions-div').style.display = ''; | 241 $('pepper-flash-cameramic-exceptions-div').style.display = ''; |
| 239 } | 242 } |
| 240 | 243 |
| 241 // Export | 244 // Export |
| 242 return { | 245 return { |
| 243 ContentSettings: ContentSettings | 246 ContentSettings: ContentSettings |
| 244 }; | 247 }; |
| 245 | 248 |
| 246 }); | 249 }); |
| OLD | NEW |