| Index: chrome/browser/notifications/balloon_host.cc
|
| ===================================================================
|
| --- chrome/browser/notifications/balloon_host.cc (revision 145001)
|
| +++ chrome/browser/notifications/balloon_host.cc (working copy)
|
| @@ -11,6 +11,7 @@
|
| #include "chrome/browser/renderer_preferences_util.h"
|
| #include "chrome/browser/ui/browser.h"
|
| #include "chrome/browser/ui/browser_finder.h"
|
| +#include "chrome/browser/ui/browser_tabstrip.h"
|
| #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h"
|
| #include "chrome/browser/view_type_utils.h"
|
| #include "chrome/common/chrome_notification_types.h"
|
| @@ -82,9 +83,10 @@
|
| bool user_gesture) {
|
| Browser* browser = browser::FindLastActiveWithProfile(
|
| Profile::FromBrowserContext(new_contents->GetBrowserContext()));
|
| - if (!browser)
|
| - return;
|
| - browser->AddWebContents(new_contents, disposition, initial_pos, user_gesture);
|
| + if (browser) {
|
| + chrome::AddWebContents(browser, NULL, new_contents, disposition,
|
| + initial_pos, user_gesture);
|
| + }
|
| }
|
|
|
| void BalloonHost::RenderViewCreated(content::RenderViewHost* render_view_host) {
|
|
|