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

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

Issue 7088017: Split incognito extension content settings in session-only and persistent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 9 years, 7 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.cc
diff --git a/chrome/browser/geolocation/geolocation_content_settings_map.cc b/chrome/browser/geolocation/geolocation_content_settings_map.cc
index daee1bd8d97a9605bd75b0250e5d7e4e3979824a..443ecc83dd36faa3ee80dd03e0510d3a1789d91c 100644
--- a/chrome/browser/geolocation/geolocation_content_settings_map.cc
+++ b/chrome/browser/geolocation/geolocation_content_settings_map.cc
@@ -211,10 +211,10 @@ void GeolocationContentSettingsMap::Observe(
if (type == NotificationType::PREF_CHANGED) {
const std::string& name = *Details<std::string>(details).ptr();
if (name == prefs::kGeolocationDefaultContentSetting) {
- NotifyObservers(ContentSettingsDetails(
- ContentSettingsPattern(),
- CONTENT_SETTINGS_TYPE_DEFAULT,
- ""));
+ ContentSettingsDetails details(ContentSettingsPattern(),
+ CONTENT_SETTINGS_TYPE_DEFAULT,
+ std::string());
+ NotifyObservers(details);
}
} else if (NotificationType::PROFILE_DESTROYED == type) {
UnregisterObservers();
« no previous file with comments | « chrome/browser/extensions/extension_prefs.cc ('k') | chrome/browser/geolocation/geolocation_content_settings_map_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698