| 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 #include "chrome/browser/ui/webui/options/content_settings_handler.h" | 5 #include "chrome/browser/ui/webui/options/content_settings_handler.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 { "mediaPepperFlashWebsitePrivacyURL", IDS_FLASH_WEBSITE_PRIVACY_URL }, | 381 { "mediaPepperFlashWebsitePrivacyURL", IDS_FLASH_WEBSITE_PRIVACY_URL }, |
| 382 // PPAPI broker filter. | 382 // PPAPI broker filter. |
| 383 { "ppapi-broker_header", IDS_PPAPI_BROKER_HEADER }, | 383 { "ppapi-broker_header", IDS_PPAPI_BROKER_HEADER }, |
| 384 { "ppapiBrokerTabLabel", IDS_PPAPI_BROKER_TAB_LABEL }, | 384 { "ppapiBrokerTabLabel", IDS_PPAPI_BROKER_TAB_LABEL }, |
| 385 { "ppapiBrokerAllow", IDS_PPAPI_BROKER_ALLOW_RADIO }, | 385 { "ppapiBrokerAllow", IDS_PPAPI_BROKER_ALLOW_RADIO }, |
| 386 { "ppapiBrokerAsk", IDS_PPAPI_BROKER_ASK_RADIO }, | 386 { "ppapiBrokerAsk", IDS_PPAPI_BROKER_ASK_RADIO }, |
| 387 { "ppapiBrokerBlock", IDS_PPAPI_BROKER_BLOCK_RADIO }, | 387 { "ppapiBrokerBlock", IDS_PPAPI_BROKER_BLOCK_RADIO }, |
| 388 // Multiple automatic downloads | 388 // Multiple automatic downloads |
| 389 { "multipleAutomaticDownloadsTabLabel", | 389 { "multipleAutomaticDownloadsTabLabel", |
| 390 IDS_AUTOMATIC_DOWNLOADS_TAB_LABEL }, | 390 IDS_AUTOMATIC_DOWNLOADS_TAB_LABEL }, |
| 391 { "multiple-automatic-downloads_header", |
| 392 IDS_AUTOMATIC_DOWNLOADS_TAB_LABEL }, |
| 391 { "multipleAutomaticDownloadsAllow", | 393 { "multipleAutomaticDownloadsAllow", |
| 392 IDS_AUTOMATIC_DOWNLOADS_ALLOW_RADIO }, | 394 IDS_AUTOMATIC_DOWNLOADS_ALLOW_RADIO }, |
| 393 { "multipleAutomaticDownloadsAsk", | 395 { "multipleAutomaticDownloadsAsk", |
| 394 IDS_AUTOMATIC_DOWNLOADS_ASK_RADIO }, | 396 IDS_AUTOMATIC_DOWNLOADS_ASK_RADIO }, |
| 395 { "multipleAutomaticDownloadsBlock", | 397 { "multipleAutomaticDownloadsBlock", |
| 396 IDS_AUTOMATIC_DOWNLOADS_BLOCK_RADIO }, | 398 IDS_AUTOMATIC_DOWNLOADS_BLOCK_RADIO }, |
| 397 // MIDI system exclusive messages | 399 // MIDI system exclusive messages |
| 398 { "midi-sysex_header", IDS_MIDI_SYSEX_TAB_LABEL }, | 400 { "midi-sysex_header", IDS_MIDI_SYSEX_TAB_LABEL }, |
| 399 { "midiSysExAllow", IDS_MIDI_SYSEX_ALLOW_RADIO }, | 401 { "midiSysExAllow", IDS_MIDI_SYSEX_ALLOW_RADIO }, |
| 400 { "midiSysExAsk", IDS_MIDI_SYSEX_ASK_RADIO }, | 402 { "midiSysExAsk", IDS_MIDI_SYSEX_ASK_RADIO }, |
| (...skipping 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1498 | 1500 |
| 1499 // Exceptions apply only when the feature is enabled. | 1501 // Exceptions apply only when the feature is enabled. |
| 1500 PrefService* prefs = user_prefs::UserPrefs::Get(GetBrowserContext(web_ui())); | 1502 PrefService* prefs = user_prefs::UserPrefs::Get(GetBrowserContext(web_ui())); |
| 1501 bool enable_exceptions = prefs->GetBoolean(prefs::kEnableDRM); | 1503 bool enable_exceptions = prefs->GetBoolean(prefs::kEnableDRM); |
| 1502 web_ui()->CallJavascriptFunction( | 1504 web_ui()->CallJavascriptFunction( |
| 1503 "ContentSettings.enableProtectedContentExceptions", | 1505 "ContentSettings.enableProtectedContentExceptions", |
| 1504 base::FundamentalValue(enable_exceptions)); | 1506 base::FundamentalValue(enable_exceptions)); |
| 1505 } | 1507 } |
| 1506 | 1508 |
| 1507 } // namespace options | 1509 } // namespace options |
| OLD | NEW |