Index: chrome/browser/resources/options2/content_settings.js |
diff --git a/chrome/browser/resources/options2/content_settings.js b/chrome/browser/resources/options2/content_settings.js |
index 41e32cdb0bd5124f80be8dffaa64a301de7b8d87..626cf76086ab2cb7e81dfd797c6ec9e5676e0d52 100644 |
--- a/chrome/browser/resources/options2/content_settings.js |
+++ b/chrome/browser/resources/options2/content_settings.js |
@@ -83,8 +83,6 @@ cr.define('options', function() { |
OptionsPage.navigateToPage('cookies'); |
}; |
- // Remove from DOM instead of hiding so :last-of-type applies the style |
- // correctly. |
var intentsSection = $('intents-section'); |
if (!loadTimeData.getBoolean('enable_web_intents') && intentsSection) |
intentsSection.parentNode.removeChild(intentsSection); |
@@ -96,6 +94,9 @@ cr.define('options', function() { |
$('content-settings-overlay-confirm').onclick = |
OptionsPage.closeOverlay.bind(OptionsPage); |
+ |
+ $('pepper-flash-cameramic-section').style.display = 'none'; |
+ $('pepper-flash-cameramic-exceptions-div').style.display = 'none'; |
csilv
2012/06/05 00:40:21
$('pepper-flash-cameramic-section').hidden = true;
yzshen1
2012/06/05 17:28:43
I tried hidden before.
It worked with the section,
csilv
2012/06/05 18:09:27
That's okay, I'm fine with not using hidden for th
|
}, |
/** |
@@ -224,6 +225,16 @@ cr.define('options', function() { |
exceptionsList.patternValidityCheckComplete(pattern, valid); |
}; |
+ /** |
+ * Enables the Pepper Flash camera and microphone settings. |
+ * Please note that whether the settings are actually showed or not is also |
+ * affected by the style class pepper-flash-settings. |
+ */ |
+ ContentSettings.enablePepperFlashCameraMicSettings = function() { |
+ $('pepper-flash-cameramic-section').style.display = ''; |
+ $('pepper-flash-cameramic-exceptions-div').style.display = ''; |
csilv
2012/06/05 00:40:21
$('pepper-flash-cameramic-section').hidden = false
yzshen1
2012/06/05 17:28:43
Please see my comment above.
On 2012/06/05 00:40:
|
+ } |
+ |
// Export |
return { |
ContentSettings: ContentSettings |