Chromium Code Reviews| Index: chrome/browser/external_tab_container_win.cc |
| =================================================================== |
| --- chrome/browser/external_tab_container_win.cc (revision 52523) |
| +++ chrome/browser/external_tab_container_win.cc (working copy) |
| @@ -333,7 +333,12 @@ |
| WindowOpenDisposition disposition, |
| const gfx::Rect& initial_pos, |
| bool user_gesture) { |
| - DCHECK(automation_ != NULL); |
| + if (!automation_) { |
| + DCHECK(pending_); |
| + LOG(ERROR) << "Invalid automation provider. Dropping new contents notify"; |
| + delete new_contents; |
|
amit
2010/07/16 22:25:38
we might have to do other cleanup corresponding to
|
| + return; |
| + } |
| scoped_refptr<ExternalTabContainer> new_container = |
| new ExternalTabContainer(NULL, NULL); |