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

Unified Diff: chrome/browser/ui/webui/web_dialog_ui.cc

Issue 10332231: Remove chrome::NOTIFICATION_WEB_DIALOG_SHOWN. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add web_dialog_observer.h to chrome_browser.gypi Created 8 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
« no previous file with comments | « chrome/browser/ui/webui/web_dialog_observer.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/web_dialog_ui.cc
diff --git a/chrome/browser/ui/webui/web_dialog_ui.cc b/chrome/browser/ui/webui/web_dialog_ui.cc
index 67dca9ec1fe9c48c58bf7243585ea5db50ec367c..c5e3dc77ac63237d04ff347414866062ca85f4d9 100644
--- a/chrome/browser/ui/webui/web_dialog_ui.cc
+++ b/chrome/browser/ui/webui/web_dialog_ui.cc
@@ -10,7 +10,6 @@
#include "base/property_bag.h"
#include "base/values.h"
#include "chrome/browser/ui/webui/web_dialog_delegate.h"
-#include "chrome/common/chrome_notification_types.h"
#include "content/public/browser/notification_service.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/web_contents.h"
@@ -74,10 +73,8 @@ void WebDialogUI::RenderViewCreated(RenderViewHost* render_view_host) {
web_ui()->AddMessageHandler(*it);
}
- content::NotificationService::current()->Notify(
- chrome::NOTIFICATION_WEB_DIALOG_SHOWN,
- content::Source<content::WebUI>(web_ui()),
- content::Details<RenderViewHost>(render_view_host));
+ if (delegate)
+ (*delegate)->OnDialogShown(web_ui(), render_view_host);
}
void WebDialogUI::OnDialogClosed(const ListValue* args) {
« no previous file with comments | « chrome/browser/ui/webui/web_dialog_observer.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698