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

Unified Diff: chrome/browser/geolocation/geolocation_content_settings_map.h

Issue 7328018: Migrate default geolocation content setting to host content settings map. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nits Created 9 years, 5 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/geolocation/geolocation_content_settings_map.h
diff --git a/chrome/browser/geolocation/geolocation_content_settings_map.h b/chrome/browser/geolocation/geolocation_content_settings_map.h
index 640ae965b1d05a4077f79a6c6acd22a58026655d..286e1f9abd2867016c63b604ebd8f9eede04af47 100644
--- a/chrome/browser/geolocation/geolocation_content_settings_map.h
+++ b/chrome/browser/geolocation/geolocation_content_settings_map.h
@@ -44,14 +44,6 @@ class GeolocationContentSettingsMap
static void RegisterUserPrefs(PrefService* prefs);
- // Returns the default setting.
- //
- // This should only be called on the UI thread.
- ContentSetting GetDefaultContentSetting() const;
-
- // Returns true if the content setting is managed (set by a policy).
- bool IsDefaultContentSettingManaged() const;
-
// Returns a single ContentSetting which applies to the given |requesting_url|
// when embedded in a top-level page from |embedding_url|. To determine the
// setting for a top-level page, as opposed to a frame embedded in a page,
@@ -67,11 +59,6 @@ class GeolocationContentSettingsMap
// This should only be called on the UI thread.
AllOriginsSettings GetAllOriginsSettings() const;
- // Sets the default setting.
- //
- // This should only be called on the UI thread.
- void SetDefaultContentSetting(ContentSetting setting);
-
// Sets the content setting for a particular (requesting origin, embedding
// origin) pair. If the embedding origin is the same as the requesting
// origin, this represents the setting used when the requesting origin is
@@ -101,9 +88,6 @@ class GeolocationContentSettingsMap
private:
friend class base::RefCountedThreadSafe<GeolocationContentSettingsMap>;
- // The default setting.
- static const ContentSetting kDefaultSetting;
-
// Sends a CONTENT_SETTINGS_CHANGED notification.
void NotifyObservers(const ContentSettingsDetails& details);

Powered by Google App Engine
This is Rietveld 408576698