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

Unified Diff: chrome/browser/ui/content_settings/content_setting_bubble_model.cc

Issue 10821059: Add done-clicked notification to content settings bubble model. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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/ui/content_settings/content_setting_bubble_model.cc
diff --git a/chrome/browser/ui/content_settings/content_setting_bubble_model.cc b/chrome/browser/ui/content_settings/content_setting_bubble_model.cc
index 03adaa84c6b42e267a0c83eabe2f5f19045605d8..277b0aacfc8754b32c3a4decf4f90ae797f0a006 100644
--- a/chrome/browser/ui/content_settings/content_setting_bubble_model.cc
+++ b/chrome/browser/ui/content_settings/content_setting_bubble_model.cc
@@ -691,6 +691,16 @@ void ContentSettingRPHBubbleModel::OnRadioClicked(int radio_index) {
NOTREACHED();
}
+void ContentSettingRPHBubbleModel::OnDoneClicked() {
+ // The user has one chance to deal with the RPH content setting UI,
+ // then we remove it.
+ tab_contents()->content_settings()->ClearPendingProtocolHandler();
+ content::NotificationService::current()->Notify(
+ chrome::NOTIFICATION_WEB_CONTENT_SETTINGS_CHANGED,
+ content::Source<WebContents>(tab_contents()->web_contents()),
+ content::NotificationService::NoDetails());
+}
+
void ContentSettingRPHBubbleModel::RegisterProtocolHandler() {
// A no-op if the handler hasn't been ignored, but needed in case the user
// selects sequences like register/ignore/register.
« no previous file with comments | « chrome/browser/ui/content_settings/content_setting_bubble_model.h ('k') | chrome/browser/ui/gtk/content_setting_bubble_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698