Chromium Code Reviews| Index: chrome/browser/extensions/extension_host.cc |
| =================================================================== |
| --- chrome/browser/extensions/extension_host.cc (revision 154977) |
| +++ chrome/browser/extensions/extension_host.cc (working copy) |
| @@ -595,7 +595,8 @@ |
| WebContents* new_contents, |
| WindowOpenDisposition disposition, |
| const gfx::Rect& initial_pos, |
| - bool user_gesture) { |
| + bool user_gesture, |
| + bool* was_blocked) { |
| // First, if the creating extension view was associated with a tab contents, |
| // use that tab content's delegate. We must be careful here that the |
| // associated tab contents has the same profile as the new tab contents. In |
| @@ -609,9 +610,12 @@ |
| if (associated_contents && |
| associated_contents->GetBrowserContext() == |
| new_contents->GetBrowserContext()) { |
| - associated_contents->AddNewContents( |
| - new_contents, disposition, initial_pos, user_gesture); |
| - return; |
|
jochen (gone - plz use gerrit)
2012/11/20 10:50:44
why did you delete this?
|
| + WebContentsDelegate* delegate = associated_contents->GetDelegate(); |
| + if (delegate) { |
| + delegate->AddNewContents( |
| + associated_contents, new_contents, disposition, initial_pos, |
| + user_gesture, was_blocked); |
| + } |
| } |
| } |