| Index: chrome/browser/ui/views/ash/panel_view_aura.cc
|
| ===================================================================
|
| --- chrome/browser/ui/views/ash/panel_view_aura.cc (revision 154307)
|
| +++ chrome/browser/ui/views/ash/panel_view_aura.cc (working copy)
|
| @@ -67,7 +67,7 @@
|
| virtual void HandleMouseDown() OVERRIDE;
|
| virtual void UpdatePreferredSize(content::WebContents* source,
|
| const gfx::Size& pref_size) OVERRIDE;
|
| - virtual void AddNewContents(content::WebContents* source,
|
| + virtual bool AddNewContents(content::WebContents* source,
|
| content::WebContents* new_contents,
|
| WindowOpenDisposition disposition,
|
| const gfx::Rect& initial_pos,
|
| @@ -139,7 +139,7 @@
|
| // This handles launching a new page from within the panel.
|
| // TODO(stevenjb): Determine whether or not this is the desired/expected
|
| // behavior for panels.
|
| -void PanelHost::AddNewContents(content::WebContents* source,
|
| +bool PanelHost::AddNewContents(content::WebContents* source,
|
| content::WebContents* new_contents,
|
| WindowOpenDisposition disposition,
|
| const gfx::Rect& initial_pos,
|
| @@ -147,9 +147,10 @@
|
| Browser* browser = browser::FindLastActiveWithProfile(
|
| Profile::FromBrowserContext(new_contents->GetBrowserContext()));
|
| if (browser) {
|
| - chrome::AddWebContents(browser, NULL, new_contents, disposition,
|
| - initial_pos, user_gesture);
|
| + return chrome::AddWebContents(browser, NULL, new_contents, disposition,
|
| + initial_pos, user_gesture);
|
| }
|
| + return true;
|
| }
|
|
|
| void PanelHost::RenderViewCreated(content::RenderViewHost* render_view_host) {
|
|
|