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

Unified Diff: mojo/system/dispatcher.cc

Issue 195973002: Change DCHECK_IS_ON() to DCHECK_IS_ON (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Keep a comment Created 6 years, 9 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
« no previous file with comments | « gpu/command_buffer/tests/gl_shared_resources_unittest.cc ('k') | net/spdy/spdy_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/dispatcher.cc
diff --git a/mojo/system/dispatcher.cc b/mojo/system/dispatcher.cc
index 0e39d2c7c7fd8de6646eb497097edb8ccdd3990c..36efbe035d45a5b108dd2ab5434c1ec471dc3cfd 100644
--- a/mojo/system/dispatcher.cc
+++ b/mojo/system/dispatcher.cc
@@ -416,8 +416,11 @@ bool Dispatcher::SerializeAndClose(Channel* channel,
// We have to call |GetMaximumSerializedSizeImplNoLock()| first, because we
// leave it to |SerializeAndCloseImplNoLock()| to close the thing.
- size_t max_size = DCHECK_IS_ON() ?
- GetMaximumSerializedSizeImplNoLock(channel) : static_cast<size_t>(-1);
+#if DCHECK_IS_ON
+ size_t max_size = GetMaximumSerializedSizeImplNoLock(channel);
+#else
+ size_t max_size = static_cast<size_t>(-1);
+#endif
// Like other |...Close()| methods, we mark ourselves as closed before calling
// the impl.
« no previous file with comments | « gpu/command_buffer/tests/gl_shared_resources_unittest.cc ('k') | net/spdy/spdy_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698