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

Issue 10942004: Cleanup: avoid foo ? true : false, part 2. (Closed)

Created:
8 years, 3 months ago by Lei Zhang
Modified:
8 years, 3 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, gavinp+disk_chromium.org
Visibility:
Public.

Description

Cleanup: avoid foo ? true : false, part 2. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=157509

Patch Set 1 : #

Total comments: 6

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -33 lines) Patch
M net/base/escape.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/disk_cache/bitmap.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/disk_cache/entry_impl.cc View 1 chunk +1 line, -2 lines 0 comments Download
M net/disk_cache/stress_cache.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_response_info.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/url_request/url_request_file_dir_job.cc View 4 chunks +6 lines, -7 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_font_rpc_server.cc View 1 chunk +1 line, -2 lines 0 comments Download
M ppapi/tests/test_graphics_2d.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M sandbox/win/src/interception.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M sandbox/win/src/policy_broker.cc View 1 chunk +1 line, -3 lines 0 comments Download
M sandbox/win/src/policy_engine_processor.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M sandbox/win/src/sandbox_nt_util.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M sandbox/win/src/sandbox_utils.cc View 1 1 chunk +2 lines, -4 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Lei Zhang
rvargas: net/ and sandbox/ dmichael: ppapi/
8 years, 3 months ago (2012-09-18 18:27:33 UTC) #1
dmichael (off chromium)
lgtm Seems fine. Just curious... why do we care? (non_bool_expression ? true : false) seems ...
8 years, 3 months ago (2012-09-18 18:32:26 UTC) #2
Lei Zhang
On 2012/09/18 18:32:26, dmichael wrote: > lgtm > > Seems fine. Just curious... why do ...
8 years, 3 months ago (2012-09-18 18:40:12 UTC) #3
rvargas (doing something else)
lgtm, Most of the ones that I looked at were actually ok by that logic ...
8 years, 3 months ago (2012-09-18 18:56:28 UTC) #4
Lei Zhang
https://chromiumcodereview.appspot.com/10942004/diff/6002/sandbox/win/src/sandbox_nt_util.cc File sandbox/win/src/sandbox_nt_util.cc (left): https://chromiumcodereview.appspot.com/10942004/diff/6002/sandbox/win/src/sandbox_nt_util.cc#oldcode16 sandbox/win/src/sandbox_nt_util.cc:16: } On 2012/09/18 18:56:28, rvargas wrote: > I actually ...
8 years, 3 months ago (2012-09-19 01:32:41 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thestig@chromium.org/10942004/14001
8 years, 3 months ago (2012-09-19 01:32:57 UTC) #6
commit-bot: I haz the power
Change committed as 157509
8 years, 3 months ago (2012-09-19 05:29:00 UTC) #7
Peter Kasting
http://codereview.chromium.org/10942004/diff/6002/sandbox/win/src/sandbox_utils.cc File sandbox/win/src/sandbox_utils.cc (right): http://codereview.chromium.org/10942004/diff/6002/sandbox/win/src/sandbox_utils.cc#newcode30 sandbox/win/src/sandbox_utils.cc:30: return !!get_module_handle_ex(flags, module_name, module); On 2012/09/19 01:32:41, Lei Zhang ...
8 years, 3 months ago (2012-09-19 21:26:31 UTC) #8
rvargas (doing something else)
http://codereview.chromium.org/10942004/diff/6002/sandbox/win/src/sandbox_utils.cc File sandbox/win/src/sandbox_utils.cc (right): http://codereview.chromium.org/10942004/diff/6002/sandbox/win/src/sandbox_utils.cc#newcode30 sandbox/win/src/sandbox_utils.cc:30: return !!get_module_handle_ex(flags, module_name, module); On 2012/09/19 21:26:31, Peter Kasting ...
8 years, 3 months ago (2012-09-19 21:35:13 UTC) #9
Peter Kasting
On 2012/09/19 21:35:13, rvargas wrote: > http://codereview.chromium.org/10942004/diff/6002/sandbox/win/src/sandbox_utils.cc > File sandbox/win/src/sandbox_utils.cc (right): > > http://codereview.chromium.org/10942004/diff/6002/sandbox/win/src/sandbox_utils.cc#newcode30 > ...
8 years, 3 months ago (2012-09-19 21:37:40 UTC) #10
Lei Zhang
On 2012/09/19 21:37:40, Peter Kasting wrote: > On 2012/09/19 21:35:13, rvargas wrote: > > > ...
8 years, 3 months ago (2012-09-19 21:42:29 UTC) #11
Peter Kasting
8 years, 3 months ago (2012-09-19 22:55:17 UTC) #12
On 2012/09/19 21:42:29, Lei Zhang wrote:
> BTW, sandbox_utils.h says the reason we have GetModuleHandleHelper() is for
> compatibility with Win2K. Isn't it time to get rid of GetModuleHandleHelper
> altogether and just call GetModuleHandleEx() directly?

I think so.  I'll take care of this.  Good catch.

Powered by Google App Engine
This is Rietveld 408576698