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

Side by Side Diff: chrome/browser/ui/webui/options/content_settings_handler.cc

Issue 1021413004: Changing Option String Resource to lowerCamelcases. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes as per review comments. Created 5 years, 9 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
« no previous file with comments | « chrome/browser/resources/options/content_settings_exceptions_area.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 ContentSettingsHandler::ContentSettingsHandler() : observer_(this) { 268 ContentSettingsHandler::ContentSettingsHandler() : observer_(this) {
269 } 269 }
270 270
271 ContentSettingsHandler::~ContentSettingsHandler() { 271 ContentSettingsHandler::~ContentSettingsHandler() {
272 } 272 }
273 273
274 void ContentSettingsHandler::GetLocalizedValues( 274 void ContentSettingsHandler::GetLocalizedValues(
275 base::DictionaryValue* localized_strings) { 275 base::DictionaryValue* localized_strings) {
276 DCHECK(localized_strings); 276 DCHECK(localized_strings);
277 277
278 // TODO(dhnishi): Standardize to lowerCamelCase.
279 static OptionsStringResource resources[] = { 278 static OptionsStringResource resources[] = {
280 {"allowException", IDS_EXCEPTIONS_ALLOW_BUTTON}, 279 {"allowException", IDS_EXCEPTIONS_ALLOW_BUTTON},
281 {"blockException", IDS_EXCEPTIONS_BLOCK_BUTTON}, 280 {"blockException", IDS_EXCEPTIONS_BLOCK_BUTTON},
282 {"sessionException", IDS_EXCEPTIONS_SESSION_ONLY_BUTTON}, 281 {"sessionException", IDS_EXCEPTIONS_SESSION_ONLY_BUTTON},
283 {"detectException", IDS_EXCEPTIONS_DETECT_IMPORTANT_CONTENT_BUTTON}, 282 {"detectException", IDS_EXCEPTIONS_DETECT_IMPORTANT_CONTENT_BUTTON},
284 {"askException", IDS_EXCEPTIONS_ASK_BUTTON}, 283 {"askException", IDS_EXCEPTIONS_ASK_BUTTON},
285 {"otr_exceptions_explanation", IDS_EXCEPTIONS_OTR_LABEL}, 284 {"otrExceptionsExplanation", IDS_EXCEPTIONS_OTR_LABEL},
286 {"addNewExceptionInstructions", IDS_EXCEPTIONS_ADD_NEW_INSTRUCTIONS}, 285 {"addNewExceptionInstructions", IDS_EXCEPTIONS_ADD_NEW_INSTRUCTIONS},
287 {"manageExceptions", IDS_EXCEPTIONS_MANAGE}, 286 {"manageExceptions", IDS_EXCEPTIONS_MANAGE},
288 {"manage_handlers", IDS_HANDLERS_MANAGE}, 287 {"manageHandlers", IDS_HANDLERS_MANAGE},
289 {"exceptionPatternHeader", IDS_EXCEPTIONS_PATTERN_HEADER}, 288 {"exceptionPatternHeader", IDS_EXCEPTIONS_PATTERN_HEADER},
290 {"exceptionBehaviorHeader", IDS_EXCEPTIONS_ACTION_HEADER}, 289 {"exceptionBehaviorHeader", IDS_EXCEPTIONS_ACTION_HEADER},
291 {"exceptionZoomHeader", IDS_EXCEPTIONS_ZOOM_HEADER}, 290 {"exceptionZoomHeader", IDS_EXCEPTIONS_ZOOM_HEADER},
292 {"embeddedOnHost", IDS_EXCEPTIONS_GEOLOCATION_EMBEDDED_ON_HOST}, 291 {"embeddedOnHost", IDS_EXCEPTIONS_GEOLOCATION_EMBEDDED_ON_HOST},
293 // Cookies filter. 292 // Cookies filter.
294 {"cookiesTabLabel", IDS_COOKIES_TAB_LABEL}, 293 {"cookiesTabLabel", IDS_COOKIES_TAB_LABEL},
295 {"cookies_header", IDS_COOKIES_HEADER}, 294 {"cookiesHeader", IDS_COOKIES_HEADER},
296 {"cookiesAllow", IDS_COOKIES_ALLOW_RADIO}, 295 {"cookiesAllow", IDS_COOKIES_ALLOW_RADIO},
297 {"cookiesBlock", IDS_COOKIES_BLOCK_RADIO}, 296 {"cookiesBlock", IDS_COOKIES_BLOCK_RADIO},
298 {"cookiesSession", IDS_COOKIES_SESSION_ONLY_RADIO}, 297 {"cookiesSession", IDS_COOKIES_SESSION_ONLY_RADIO},
299 {"cookies_block_3rd_party", IDS_COOKIES_BLOCK_3RDPARTY_CHKBOX}, 298 {"cookiesBlock3rdParty", IDS_COOKIES_BLOCK_3RDPARTY_CHKBOX},
300 {"cookies_clear_when_close", IDS_COOKIES_CLEAR_WHEN_CLOSE_CHKBOX}, 299 {"cookiesClearWhenClose", IDS_COOKIES_CLEAR_WHEN_CLOSE_CHKBOX},
301 {"cookies_lso_clear_when_close", IDS_COOKIES_LSO_CLEAR_WHEN_CLOSE_CHKBOX}, 300 {"cookiesLsoClearWhenClose", IDS_COOKIES_LSO_CLEAR_WHEN_CLOSE_CHKBOX},
302 {"cookies_show_cookies", IDS_COOKIES_SHOW_COOKIES_BUTTON}, 301 {"cookiesShowCookies", IDS_COOKIES_SHOW_COOKIES_BUTTON},
303 {"flash_storage_settings", IDS_FLASH_STORAGE_SETTINGS}, 302 {"flashStorageSettings", IDS_FLASH_STORAGE_SETTINGS},
304 {"flash_storage_url", IDS_FLASH_STORAGE_URL}, 303 {"flashStorageUrl", IDS_FLASH_STORAGE_URL},
305 #if defined(ENABLE_GOOGLE_NOW) 304 #if defined(ENABLE_GOOGLE_NOW)
306 {"googleGeolocationAccessEnable", 305 {"googleGeolocationAccessEnable",
307 IDS_GEOLOCATION_GOOGLE_ACCESS_ENABLE_CHKBOX}, 306 IDS_GEOLOCATION_GOOGLE_ACCESS_ENABLE_CHKBOX},
308 #endif 307 #endif
309 // Image filter. 308 // Image filter.
310 {"imagesTabLabel", IDS_IMAGES_TAB_LABEL}, 309 {"imagesTabLabel", IDS_IMAGES_TAB_LABEL},
311 {"images_header", IDS_IMAGES_HEADER}, 310 {"imagesHeader", IDS_IMAGES_HEADER},
312 {"imagesAllow", IDS_IMAGES_LOAD_RADIO}, 311 {"imagesAllow", IDS_IMAGES_LOAD_RADIO},
313 {"imagesBlock", IDS_IMAGES_NOLOAD_RADIO}, 312 {"imagesBlock", IDS_IMAGES_NOLOAD_RADIO},
314 // JavaScript filter. 313 // JavaScript filter.
315 {"javascriptTabLabel", IDS_JAVASCRIPT_TAB_LABEL}, 314 {"javascriptTabLabel", IDS_JAVASCRIPT_TAB_LABEL},
316 {"javascript_header", IDS_JAVASCRIPT_HEADER}, 315 {"javascriptHeader", IDS_JAVASCRIPT_HEADER},
317 {"javascriptAllow", IDS_JS_ALLOW_RADIO}, 316 {"javascriptAllow", IDS_JS_ALLOW_RADIO},
318 {"javascriptBlock", IDS_JS_DONOTALLOW_RADIO}, 317 {"javascriptBlock", IDS_JS_DONOTALLOW_RADIO},
319 // Plugins filter. 318 // Plugins filter.
320 {"pluginsTabLabel", IDS_PLUGIN_TAB_LABEL}, 319 {"pluginsTabLabel", IDS_PLUGIN_TAB_LABEL},
321 {"plugins_header", IDS_PLUGIN_HEADER}, 320 {"pluginsHeader", IDS_PLUGIN_HEADER},
322 {"pluginsAllow", IDS_PLUGIN_ALLOW_RADIO}, 321 {"pluginsAllow", IDS_PLUGIN_ALLOW_RADIO},
323 {"pluginsDetect", IDS_PLUGIN_DETECT_RADIO}, 322 {"pluginsDetect", IDS_PLUGIN_DETECT_RADIO},
324 {"pluginsBlock", IDS_PLUGIN_BLOCK_RADIO}, 323 {"pluginsBlock", IDS_PLUGIN_BLOCK_RADIO},
325 {"manageIndividualPlugins", IDS_PLUGIN_MANAGE_INDIVIDUAL}, 324 {"manageIndividualPlugins", IDS_PLUGIN_MANAGE_INDIVIDUAL},
326 // Pop-ups filter. 325 // Pop-ups filter.
327 {"popupsTabLabel", IDS_POPUP_TAB_LABEL}, 326 {"popupsTabLabel", IDS_POPUP_TAB_LABEL},
328 {"popups_header", IDS_POPUP_HEADER}, 327 {"popupsHeader", IDS_POPUP_HEADER},
329 {"popupsAllow", IDS_POPUP_ALLOW_RADIO}, 328 {"popupsAllow", IDS_POPUP_ALLOW_RADIO},
330 {"popupsBlock", IDS_POPUP_BLOCK_RADIO}, 329 {"popupsBlock", IDS_POPUP_BLOCK_RADIO},
331 // Location filter. 330 // Location filter.
332 {"locationTabLabel", IDS_GEOLOCATION_TAB_LABEL}, 331 {"locationTabLabel", IDS_GEOLOCATION_TAB_LABEL},
333 {"location_header", IDS_GEOLOCATION_HEADER}, 332 {"locationHeader", IDS_GEOLOCATION_HEADER},
334 {"locationAllow", IDS_GEOLOCATION_ALLOW_RADIO}, 333 {"locationAllow", IDS_GEOLOCATION_ALLOW_RADIO},
335 {"locationAsk", IDS_GEOLOCATION_ASK_RADIO}, 334 {"locationAsk", IDS_GEOLOCATION_ASK_RADIO},
336 {"locationBlock", IDS_GEOLOCATION_BLOCK_RADIO}, 335 {"locationBlock", IDS_GEOLOCATION_BLOCK_RADIO},
337 {"set_by", IDS_GEOLOCATION_SET_BY_HOVER}, 336 {"setBy", IDS_GEOLOCATION_SET_BY_HOVER},
338 // Notifications filter. 337 // Notifications filter.
339 {"notificationsTabLabel", IDS_NOTIFICATIONS_TAB_LABEL}, 338 {"notificationsTabLabel", IDS_NOTIFICATIONS_TAB_LABEL},
340 {"notifications_header", IDS_NOTIFICATIONS_HEADER}, 339 {"notificationsHeader", IDS_NOTIFICATIONS_HEADER},
341 {"notificationsAllow", IDS_NOTIFICATIONS_ALLOW_RADIO}, 340 {"notificationsAllow", IDS_NOTIFICATIONS_ALLOW_RADIO},
342 {"notificationsAsk", IDS_NOTIFICATIONS_ASK_RADIO}, 341 {"notificationsAsk", IDS_NOTIFICATIONS_ASK_RADIO},
343 {"notificationsBlock", IDS_NOTIFICATIONS_BLOCK_RADIO}, 342 {"notificationsBlock", IDS_NOTIFICATIONS_BLOCK_RADIO},
344 // Fullscreen filter. 343 // Fullscreen filter.
345 {"fullscreenTabLabel", IDS_FULLSCREEN_TAB_LABEL}, 344 {"fullscreenTabLabel", IDS_FULLSCREEN_TAB_LABEL},
346 {"fullscreen_header", IDS_FULLSCREEN_HEADER}, 345 {"fullscreenHeader", IDS_FULLSCREEN_HEADER},
347 // Mouse Lock filter. 346 // Mouse Lock filter.
348 {"mouselockTabLabel", IDS_MOUSE_LOCK_TAB_LABEL}, 347 {"mouselockTabLabel", IDS_MOUSE_LOCK_TAB_LABEL},
349 {"mouselock_header", IDS_MOUSE_LOCK_HEADER}, 348 {"mouselockHeader", IDS_MOUSE_LOCK_HEADER},
350 {"mouselockAllow", IDS_MOUSE_LOCK_ALLOW_RADIO}, 349 {"mouselockAllow", IDS_MOUSE_LOCK_ALLOW_RADIO},
351 {"mouselockAsk", IDS_MOUSE_LOCK_ASK_RADIO}, 350 {"mouselockAsk", IDS_MOUSE_LOCK_ASK_RADIO},
352 {"mouselockBlock", IDS_MOUSE_LOCK_BLOCK_RADIO}, 351 {"mouselockBlock", IDS_MOUSE_LOCK_BLOCK_RADIO},
353 #if defined(OS_CHROMEOS) || defined(OS_WIN) 352 #if defined(OS_CHROMEOS) || defined(OS_WIN)
354 // Protected Content filter 353 // Protected Content filter
355 {"protectedContentTabLabel", IDS_PROTECTED_CONTENT_TAB_LABEL}, 354 {"protectedContentTabLabel", IDS_PROTECTED_CONTENT_TAB_LABEL},
356 {"protectedContentInfo", IDS_PROTECTED_CONTENT_INFO}, 355 {"protectedContentInfo", IDS_PROTECTED_CONTENT_INFO},
357 {"protectedContentEnable", IDS_PROTECTED_CONTENT_ENABLE}, 356 {"protectedContentEnable", IDS_PROTECTED_CONTENT_ENABLE},
358 {"protectedContent_header", IDS_PROTECTED_CONTENT_HEADER}, 357 {"protectedContentHeader", IDS_PROTECTED_CONTENT_HEADER},
359 #endif // defined(OS_CHROMEOS) || defined(OS_WIN) 358 #endif // defined(OS_CHROMEOS) || defined(OS_WIN)
360 // Media stream capture device filter. 359 // Media stream capture device filter.
361 {"mediaStreamTabLabel", IDS_MEDIA_STREAM_TAB_LABEL}, 360 {"mediaStreamTabLabel", IDS_MEDIA_STREAM_TAB_LABEL},
362 {"media-stream_header", IDS_MEDIA_STREAM_HEADER}, 361 {"mediaStreamHeader", IDS_MEDIA_STREAM_HEADER},
363 {"mediaStreamAsk", IDS_MEDIA_STREAM_ASK_RADIO}, 362 {"mediaStreamAsk", IDS_MEDIA_STREAM_ASK_RADIO},
364 {"mediaStreamBlock", IDS_MEDIA_STREAM_BLOCK_RADIO}, 363 {"mediaStreamBlock", IDS_MEDIA_STREAM_BLOCK_RADIO},
365 {"mediaStreamAudioAsk", IDS_MEDIA_STREAM_ASK_AUDIO_ONLY_RADIO}, 364 {"mediaStreamAudioAsk", IDS_MEDIA_STREAM_ASK_AUDIO_ONLY_RADIO},
366 {"mediaStreamAudioBlock", IDS_MEDIA_STREAM_BLOCK_AUDIO_ONLY_RADIO}, 365 {"mediaStreamAudioBlock", IDS_MEDIA_STREAM_BLOCK_AUDIO_ONLY_RADIO},
367 {"mediaStreamVideoAsk", IDS_MEDIA_STREAM_ASK_VIDEO_ONLY_RADIO}, 366 {"mediaStreamVideoAsk", IDS_MEDIA_STREAM_ASK_VIDEO_ONLY_RADIO},
368 {"mediaStreamVideoBlock", IDS_MEDIA_STREAM_BLOCK_VIDEO_ONLY_RADIO}, 367 {"mediaStreamVideoBlock", IDS_MEDIA_STREAM_BLOCK_VIDEO_ONLY_RADIO},
369 {"mediaStreamBubbleAudio", IDS_MEDIA_STREAM_AUDIO_MANAGED}, 368 {"mediaStreamBubbleAudio", IDS_MEDIA_STREAM_AUDIO_MANAGED},
370 {"mediaStreamBubbleVideo", IDS_MEDIA_STREAM_VIDEO_MANAGED}, 369 {"mediaStreamBubbleVideo", IDS_MEDIA_STREAM_VIDEO_MANAGED},
371 {"mediaAudioExceptionHeader", IDS_MEDIA_AUDIO_EXCEPTION_HEADER}, 370 {"mediaAudioExceptionHeader", IDS_MEDIA_AUDIO_EXCEPTION_HEADER},
372 {"mediaVideoExceptionHeader", IDS_MEDIA_VIDEO_EXCEPTION_HEADER}, 371 {"mediaVideoExceptionHeader", IDS_MEDIA_VIDEO_EXCEPTION_HEADER},
373 {"mediaPepperFlashDefaultDivergedLabel", 372 {"mediaPepperFlashDefaultDivergedLabel",
374 IDS_MEDIA_PEPPER_FLASH_DEFAULT_DIVERGED_LABEL}, 373 IDS_MEDIA_PEPPER_FLASH_DEFAULT_DIVERGED_LABEL},
375 {"mediaPepperFlashExceptionsDivergedLabel", 374 {"mediaPepperFlashExceptionsDivergedLabel",
376 IDS_MEDIA_PEPPER_FLASH_EXCEPTIONS_DIVERGED_LABEL}, 375 IDS_MEDIA_PEPPER_FLASH_EXCEPTIONS_DIVERGED_LABEL},
377 {"mediaPepperFlashChangeLink", IDS_MEDIA_PEPPER_FLASH_CHANGE_LINK}, 376 {"mediaPepperFlashChangeLink", IDS_MEDIA_PEPPER_FLASH_CHANGE_LINK},
378 {"mediaPepperFlashGlobalPrivacyURL", IDS_FLASH_GLOBAL_PRIVACY_URL}, 377 {"mediaPepperFlashGlobalPrivacyURL", IDS_FLASH_GLOBAL_PRIVACY_URL},
379 {"mediaPepperFlashWebsitePrivacyURL", IDS_FLASH_WEBSITE_PRIVACY_URL}, 378 {"mediaPepperFlashWebsitePrivacyURL", IDS_FLASH_WEBSITE_PRIVACY_URL},
380 // PPAPI broker filter. 379 // PPAPI broker filter.
381 {"ppapi-broker_header", IDS_PPAPI_BROKER_HEADER}, 380 {"ppapiBrokerHeader", IDS_PPAPI_BROKER_HEADER},
382 {"ppapiBrokerTabLabel", IDS_PPAPI_BROKER_TAB_LABEL}, 381 {"ppapiBrokerTabLabel", IDS_PPAPI_BROKER_TAB_LABEL},
383 {"ppapiBrokerAllow", IDS_PPAPI_BROKER_ALLOW_RADIO}, 382 {"ppapiBrokerAllow", IDS_PPAPI_BROKER_ALLOW_RADIO},
384 {"ppapiBrokerAsk", IDS_PPAPI_BROKER_ASK_RADIO}, 383 {"ppapiBrokerAsk", IDS_PPAPI_BROKER_ASK_RADIO},
385 {"ppapiBrokerBlock", IDS_PPAPI_BROKER_BLOCK_RADIO}, 384 {"ppapiBrokerBlock", IDS_PPAPI_BROKER_BLOCK_RADIO},
386 // Multiple automatic downloads 385 // Multiple automatic downloads
387 {"multipleAutomaticDownloadsTabLabel", IDS_AUTOMATIC_DOWNLOADS_TAB_LABEL}, 386 {"multipleAutomaticDownloadsTabLabel", IDS_AUTOMATIC_DOWNLOADS_TAB_LABEL},
388 {"multiple-automatic-downloads_header", IDS_AUTOMATIC_DOWNLOADS_TAB_LABEL}, 387 {"multipleAutomaticDownloadsHeader", IDS_AUTOMATIC_DOWNLOADS_TAB_LABEL},
389 {"multipleAutomaticDownloadsAllow", IDS_AUTOMATIC_DOWNLOADS_ALLOW_RADIO}, 388 {"multipleAutomaticDownloadsAllow", IDS_AUTOMATIC_DOWNLOADS_ALLOW_RADIO},
390 {"multipleAutomaticDownloadsAsk", IDS_AUTOMATIC_DOWNLOADS_ASK_RADIO}, 389 {"multipleAutomaticDownloadsAsk", IDS_AUTOMATIC_DOWNLOADS_ASK_RADIO},
391 {"multipleAutomaticDownloadsBlock", IDS_AUTOMATIC_DOWNLOADS_BLOCK_RADIO}, 390 {"multipleAutomaticDownloadsBlock", IDS_AUTOMATIC_DOWNLOADS_BLOCK_RADIO},
392 // MIDI system exclusive messages 391 // MIDI system exclusive messages
393 {"midi-sysex_header", IDS_MIDI_SYSEX_TAB_LABEL}, 392 {"midiSysexHeader", IDS_MIDI_SYSEX_TAB_LABEL},
394 {"midiSysExAllow", IDS_MIDI_SYSEX_ALLOW_RADIO}, 393 {"midiSysExAllow", IDS_MIDI_SYSEX_ALLOW_RADIO},
395 {"midiSysExAsk", IDS_MIDI_SYSEX_ASK_RADIO}, 394 {"midiSysExAsk", IDS_MIDI_SYSEX_ASK_RADIO},
396 {"midiSysExBlock", IDS_MIDI_SYSEX_BLOCK_RADIO}, 395 {"midiSysExBlock", IDS_MIDI_SYSEX_BLOCK_RADIO},
397 // Push messaging strings 396 // Push messaging strings
398 {"push-messaging_header", IDS_PUSH_MESSAGES_TAB_LABEL}, 397 {"pushMessagingHeader", IDS_PUSH_MESSAGES_TAB_LABEL},
399 {"pushMessagingAllow", IDS_PUSH_MESSSAGING_ALLOW_RADIO}, 398 {"pushMessagingAllow", IDS_PUSH_MESSSAGING_ALLOW_RADIO},
400 {"pushMessagingAsk", IDS_PUSH_MESSSAGING_ASK_RADIO}, 399 {"pushMessagingAsk", IDS_PUSH_MESSSAGING_ASK_RADIO},
401 {"pushMessagingBlock", IDS_PUSH_MESSSAGING_BLOCK_RADIO}, 400 {"pushMessagingBlock", IDS_PUSH_MESSSAGING_BLOCK_RADIO},
402 {"zoomlevels_header", IDS_ZOOMLEVELS_HEADER_AND_TAB_LABEL}, 401 {"zoomlevelsHeader", IDS_ZOOMLEVELS_HEADER_AND_TAB_LABEL},
403 {"zoomLevelsManage", IDS_ZOOMLEVELS_MANAGE_BUTTON}, 402 {"zoomLevelsManage", IDS_ZOOMLEVELS_MANAGE_BUTTON},
404 }; 403 };
405 404
406 RegisterStrings(localized_strings, resources, arraysize(resources)); 405 RegisterStrings(localized_strings, resources, arraysize(resources));
407 RegisterTitle(localized_strings, "contentSettingsPage", 406 RegisterTitle(localized_strings, "contentSettingsPage",
408 IDS_CONTENT_SETTINGS_TITLE); 407 IDS_CONTENT_SETTINGS_TITLE);
409 408
410 // Register titles for each of the individual settings whose exception 409 // Register titles for each of the individual settings whose exception
411 // dialogs will be processed by |ContentSettingsHandler|. 410 // dialogs will be processed by |ContentSettingsHandler|.
412 RegisterTitle(localized_strings, "cookies", 411 RegisterTitle(localized_strings, "cookies",
(...skipping 1182 matching lines...) Expand 10 before | Expand all | Expand 10 after
1595 1594
1596 // Exceptions apply only when the feature is enabled. 1595 // Exceptions apply only when the feature is enabled.
1597 PrefService* prefs = user_prefs::UserPrefs::Get(GetBrowserContext(web_ui())); 1596 PrefService* prefs = user_prefs::UserPrefs::Get(GetBrowserContext(web_ui()));
1598 bool enable_exceptions = prefs->GetBoolean(prefs::kEnableDRM); 1597 bool enable_exceptions = prefs->GetBoolean(prefs::kEnableDRM);
1599 web_ui()->CallJavascriptFunction( 1598 web_ui()->CallJavascriptFunction(
1600 "ContentSettings.enableProtectedContentExceptions", 1599 "ContentSettings.enableProtectedContentExceptions",
1601 base::FundamentalValue(enable_exceptions)); 1600 base::FundamentalValue(enable_exceptions));
1602 } 1601 }
1603 1602
1604 } // namespace options 1603 } // namespace options
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/content_settings_exceptions_area.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698