diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-13 00:24:20 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-13 00:24:20 +0000 |
commit | 8a2bc9dd3c3a8185a7fc1ecc9c70d621cfc10553 (patch) | |
tree | 2c1db8f4a6bd0f0315a32472bcd46197a78f2163 /chrome/browser/geolocation | |
parent | cbd238142237cfacd962936debbdc228a66e19d0 (diff) | |
download | chromium_src-8a2bc9dd3c3a8185a7fc1ecc9c70d621cfc10553.zip chromium_src-8a2bc9dd3c3a8185a7fc1ecc9c70d621cfc10553.tar.gz chromium_src-8a2bc9dd3c3a8185a7fc1ecc9c70d621cfc10553.tar.bz2 |
DOM UI Settings - Desktop Notification exceptions
- hook up desktop notification exceptions map to the view.
- fix the notification system for desktop notifications and geolocation so that the views update in real time
- disable double-click editing of desktop/location exceptions
BUG=57457
TEST=manual
Review URL: http://codereview.chromium.org/3709006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62361 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/geolocation')
-rw-r--r-- | chrome/browser/geolocation/geolocation_content_settings_map.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/geolocation/geolocation_content_settings_map.cc b/chrome/browser/geolocation/geolocation_content_settings_map.cc index c302d4e..0bf798c 100644 --- a/chrome/browser/geolocation/geolocation_content_settings_map.cc +++ b/chrome/browser/geolocation/geolocation_content_settings_map.cc @@ -117,6 +117,11 @@ void GeolocationContentSettingsMap::SetDefaultContentSetting( profile_->GetPrefs()->SetInteger(prefs::kGeolocationDefaultContentSetting, setting == CONTENT_SETTING_DEFAULT ? kDefaultSetting : setting); + + NotificationService::current()->Notify( + NotificationType::GEOLOCATION_DEFAULT_CHANGED, + Source<GeolocationContentSettingsMap>(this), + NotificationService::NoDetails()); } void GeolocationContentSettingsMap::SetContentSetting( |