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

Unified Diff: sandbox/win/src/interception.cc

Issue 10942004: Cleanup: avoid foo ? true : false, part 2. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 3 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: sandbox/win/src/interception.cc
===================================================================
--- sandbox/win/src/interception.cc (revision 157289)
+++ sandbox/win/src/interception.cc (working copy)
@@ -433,9 +433,8 @@
PAGE_EXECUTE_READ, &old_protection);
ResultCode ret = child_->TransferVariable("g_originals", g_originals,
- sizeof(g_originals));
-
- return SBOX_ALL_OK == ret ? true : false;
+ sizeof(g_originals));
+ return (SBOX_ALL_OK == ret);
}
bool InterceptionManager::PatchClientFunctions(DllInterceptionData* thunks,

Powered by Google App Engine
This is Rietveld 408576698