Index: chrome/browser/notifications/balloon_host.cc |
diff --git a/chrome/browser/notifications/balloon_host.cc b/chrome/browser/notifications/balloon_host.cc |
index 8376b4cf351a25fb8c4fdafac6f2ba8e42b7ed59..da77c96c72061a45759a02a6d409db5638e67c38 100644 |
--- a/chrome/browser/notifications/balloon_host.cc |
+++ b/chrome/browser/notifications/balloon_host.cc |
@@ -91,7 +91,8 @@ const string16& BalloonHost::GetSource() const { |
WebPreferences BalloonHost::GetWebkitPrefs() { |
WebPreferences web_prefs = |
- RenderViewHostDelegateHelper::GetWebkitPrefs(GetProfile(), enable_dom_ui_); |
+ RenderViewHostDelegateHelper::GetWebkitPrefs(GetProfile(), |
+ enable_dom_ui_); |
web_prefs.allow_scripts_to_close_windows = true; |
return web_prefs; |
} |
@@ -130,7 +131,9 @@ void BalloonHost::RenderViewReady(RenderViewHost* render_view_host) { |
Source<BalloonHost>(this), NotificationService::NoDetails()); |
} |
-void BalloonHost::RenderViewGone(RenderViewHost* render_view_host) { |
+void BalloonHost::RenderViewGone(RenderViewHost* render_view_host, |
+ base::TerminationStatus status, |
+ int error_code) { |
Close(render_view_host); |
} |