Chromium Code Reviews| Index: ceee/ie/broker/tab_api_module.cc |
| =================================================================== |
| --- ceee/ie/broker/tab_api_module.cc (revision 68734) |
| +++ ceee/ie/broker/tab_api_module.cc (working copy) |
| @@ -969,10 +969,12 @@ |
| long flags = selected ? navOpenInNewTab : navOpenInBackgroundTab; |
| HRESULT hr = executor->Navigate(base::win::ScopedBstr(url_wstring.c_str()), |
| flags, base::win::ScopedBstr(L"_blank")); |
| - // We can DCHECK here because navigating to a new tab shouldn't fail as |
| - // described in the comment at the bottom of CeeeExecutor::Navigate(). |
| - DCHECK(SUCCEEDED(hr)) << "Failed to create tab. " << com::LogHr(hr); |
| if (FAILED(hr)) { |
| + // Log the error without DCHECKING There are legit reasons for Navigate |
| + // to fail, as explained in comments in CeeeExecutor::Navigate. |
| + // TODO(motek@chromium.org) See why exactly we fail here in some |
| + // integration tests. |
| + LOG(WARNING) << "Failed to create tab. " << com::LogHr(hr); |
|
mad-corp
2010/12/14 13:38:20
This should be at least ERROR... And I actually th
|
| result->PostError("Internal error while trying to create tab."); |
| return; |
| } |