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

Unified Diff: webrtc/base/win32window.cc

Issue 2623473004: Replace all use of the VERIFY macro. (Closed)
Patch Set: Delete a DCHECK, instead log and return failure. And fix compile error in previous patch set. Created 3 years, 10 months 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: webrtc/base/win32window.cc
diff --git a/webrtc/base/win32window.cc b/webrtc/base/win32window.cc
index daa7688554863a26d772e36738e93f87c825fefc..9abbc86807a63835165b819f0e6689b5e5b80815 100644
--- a/webrtc/base/win32window.cc
+++ b/webrtc/base/win32window.cc
@@ -9,7 +9,6 @@
*/
#include "webrtc/base/checks.h"
-#include "webrtc/base/common.h"
#include "webrtc/base/logging.h"
#include "webrtc/base/win32window.h"
@@ -65,7 +64,8 @@ bool Win32Window::Create(HWND parent, const wchar_t* title, DWORD style,
}
void Win32Window::Destroy() {
- VERIFY(::DestroyWindow(wnd_) != FALSE);
+ const bool success = ::DestroyWindow(wnd_);
+ RTC_DCHECK(success);
}
void Win32Window::Shutdown() {

Powered by Google App Engine
This is Rietveld 408576698