diff options
Diffstat (limited to 'chrome/browser/notifications/balloon_host.cc')
| -rw-r--r-- | chrome/browser/notifications/balloon_host.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/notifications/balloon_host.cc b/chrome/browser/notifications/balloon_host.cc index f47d395..04f0b89 100644 --- a/chrome/browser/notifications/balloon_host.cc +++ b/chrome/browser/notifications/balloon_host.cc @@ -7,6 +7,7 @@ #include "chrome/browser/browser_list.h" #include "chrome/browser/extensions/extension_process_manager.h" #include "chrome/browser/notifications/balloon.h" +#include "chrome/browser/notifications/notification.h" #include "chrome/browser/profile.h" #include "chrome/browser/renderer_host/render_view_host.h" #include "chrome/browser/renderer_host/site_instance.h" @@ -17,6 +18,7 @@ #include "chrome/common/render_messages.h" #include "chrome/common/renderer_preferences.h" #include "chrome/common/url_constants.h" +#include "webkit/glue/webpreferences.h" BalloonHost::BalloonHost(Balloon* balloon) : render_view_host_(NULL), @@ -40,6 +42,7 @@ BalloonHost::BalloonHost(Balloon* balloon) } void BalloonHost::Shutdown() { + NotifyDisconnect(); if (render_view_host_) { render_view_host_->Shutdown(); render_view_host_ = NULL; @@ -58,6 +61,10 @@ gfx::NativeView BalloonHost::GetNativeViewOfHost() { TabContents* BalloonHost::associated_tab_contents() const { return NULL; } +const string16& BalloonHost::GetSource() const { + return balloon_->notification().display_source(); +} + WebPreferences BalloonHost::GetWebkitPrefs() { WebPreferences prefs; prefs.allow_scripts_to_close_windows = true; |
