Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(920)

Unified Diff: ceee/ie/broker/tab_api_module.cc

Issue 5751001: Replace DCHECKs on InserCode and Navigate paths with LOG(ERROR) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}
« no previous file with comments | « no previous file | ceee/ie/plugin/bho/browser_helper_object.cc » ('j') | ceee/ie/plugin/bho/browser_helper_object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698