Chromium Code Reviews| Index: chrome/browser/extensions/extension_host.cc |
| diff --git a/chrome/browser/extensions/extension_host.cc b/chrome/browser/extensions/extension_host.cc |
| index 7badebfca008cb1df3d75ec7525b169c527e6843..160931716937d40f8625fc0254ec9237c99726ed 100644 |
| --- a/chrome/browser/extensions/extension_host.cc |
| +++ b/chrome/browser/extensions/extension_host.cc |
| @@ -598,6 +598,8 @@ void ExtensionHost::ShowCreatedWindow(int route_id, |
| false); // Match incognito exactly. |
| TabContentsWrapper* wrapper = new TabContentsWrapper(contents); |
| browser::NavigateParams params(browser, wrapper); |
| + if (!browser) |
|
Matt Perry
2011/05/19 00:50:32
Does it make sense to set the profile even if brow
prasadt
2011/05/19 00:58:18
I'm not really sure and tried to make the fix affe
Matt Perry
2011/05/19 01:01:32
Fair enough.
|
| + params.profile = contents->profile(); |
| params.disposition = NEW_POPUP; |
| params.window_bounds = initial_pos; |
| params.window_action = browser::NavigateParams::SHOW_WINDOW; |