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

Unified Diff: chrome/browser/geolocation/geolocation_settings_state.cc

Issue 7328018: Migrate default geolocation content setting to host content settings map. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " 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_settings_state.cc
diff --git a/chrome/browser/geolocation/geolocation_settings_state.cc b/chrome/browser/geolocation/geolocation_settings_state.cc
index 751904e0443ad90e189fd9c5bbd74baff41acfab..82e28e7e1b05d7937882320ec6b4840e8d932edf 100644
--- a/chrome/browser/geolocation/geolocation_settings_state.cc
+++ b/chrome/browser/geolocation/geolocation_settings_state.cc
@@ -4,8 +4,11 @@
#include "chrome/browser/geolocation/geolocation_settings_state.h"
+#include <string>
+
#include "base/string_piece.h"
#include "base/utf_string_conversions.h"
+#include "chrome/browser/content_settings/host_content_settings_map.h"
#include "chrome/browser/geolocation/geolocation_content_settings_map.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile.h"
@@ -55,7 +58,8 @@ void GeolocationSettingsState::GetDetailedInfo(
DCHECK(tab_state_flags);
DCHECK(embedder_url_.is_valid());
const ContentSetting default_setting =
Bernhard Bauer 2011/07/15 13:31:44 Nit: the |const| before |ContentSetting| isn't rea
markusheintz_ 2011/07/15 16:21:50 Done.
- profile_->GetGeolocationContentSettingsMap()->GetDefaultContentSetting();
+ profile_->GetHostContentSettingsMap()->GetDefaultContentSetting(
+ CONTENT_SETTINGS_TYPE_GEOLOCATION);
std::set<std::string> formatted_hosts;
std::set<std::string> repeated_formatted_hosts;

Powered by Google App Engine
This is Rietveld 408576698