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

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

Issue 8510008: Don't whitelist extensions for geolocation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/content_settings/host_content_settings_map.cc
diff --git a/chrome/browser/content_settings/host_content_settings_map.cc b/chrome/browser/content_settings/host_content_settings_map.cc
index 6aa63b0b6587d9a34a9105b5edb378529de6c226..b0baa0425bf6024d7d1ca7959f192a8d9a8dfac3 100644
--- a/chrome/browser/content_settings/host_content_settings_map.cc
+++ b/chrome/browser/content_settings/host_content_settings_map.cc
@@ -389,8 +389,10 @@ bool HostContentSettingsMap::ShouldAllowAllContent(
const GURL& primary_url,
const GURL& secondary_url,
ContentSettingsType content_type) {
- if (content_type == CONTENT_SETTINGS_TYPE_NOTIFICATIONS)
+ if (content_type == CONTENT_SETTINGS_TYPE_NOTIFICATIONS ||
+ content_type == CONTENT_SETTINGS_TYPE_GEOLOCATION) {
return false;
+ }
if (primary_url.SchemeIs(chrome::kExtensionScheme)) {
return content_type != CONTENT_SETTINGS_TYPE_COOKIES ||
secondary_url.SchemeIs(chrome::kExtensionScheme);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698