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

Unified Diff: chrome/browser/content_settings/tab_specific_content_settings.cc

Issue 12092045: Revert 179093 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1397/src/
Patch Set: Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/content_settings/tab_specific_content_settings.cc
===================================================================
--- chrome/browser/content_settings/tab_specific_content_settings.cc (revision 179367)
+++ chrome/browser/content_settings/tab_specific_content_settings.cc (working copy)
@@ -206,8 +206,7 @@
content_type == CONTENT_SETTINGS_TYPE_PLUGINS ||
content_type == CONTENT_SETTINGS_TYPE_COOKIES ||
content_type == CONTENT_SETTINGS_TYPE_POPUPS ||
- content_type == CONTENT_SETTINGS_TYPE_MIXEDSCRIPT ||
- content_type == CONTENT_SETTINGS_TYPE_MEDIASTREAM)
+ content_type == CONTENT_SETTINGS_TYPE_MIXEDSCRIPT)
return content_blocked_[content_type];
return false;
@@ -225,10 +224,8 @@
bool TabSpecificContentSettings::IsContentAccessed(
ContentSettingsType content_type) const {
- // This method currently only returns meaningful values for the content type
- // cookies and mediastream.
- if (content_type != CONTENT_SETTINGS_TYPE_COOKIES &&
- content_type != CONTENT_SETTINGS_TYPE_MEDIASTREAM)
+ // This method currently only returns meaningful values for cookies.
+ if (content_type != CONTENT_SETTINGS_TYPE_COOKIES)
return false;
return content_accessed_[content_type];
@@ -425,10 +422,6 @@
content::NotificationService::NoDetails());
}
-void TabSpecificContentSettings::OnMediaStreamAccessed() {
- OnContentAccessed(CONTENT_SETTINGS_TYPE_MEDIASTREAM);
-}
-
void TabSpecificContentSettings::ClearBlockedContentSettingsExceptForCookies() {
for (size_t i = 0; i < arraysize(content_blocked_); ++i) {
if (i == CONTENT_SETTINGS_TYPE_COOKIES)

Powered by Google App Engine
This is Rietveld 408576698