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

Issue 1355403002: enum class fixups - testing non-zero (Closed)

Created:
5 years, 3 months ago by johngro
Modified:
5 years, 3 months ago
Reviewers:
viettrungluu
CC:
mojo-reviews_chromium.org, qsr+mojo_chromium.org, yzshen+watch_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

enum class fixups - testing non-zero Fixups in preparation for changing the mojom C++ binding generator to produce enum classes instead of just enums. Specifically, address issues where enums were being tested for truth by assuming that they would be implicitly converted to ints and checked for non-zero-ness. BUG= R=viettrungluu@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/08f574e5254fa87c80ce0f35be3ab25fdfc5958c

Patch Set 1 #

Total comments: 8

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -23 lines) Patch
M examples/echo_terminal/main.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M services/files/directory_impl.cc View 1 4 chunks +17 lines, -8 lines 0 comments Download
M services/files/file_impl.cc View 1 6 chunks +33 lines, -11 lines 0 comments Download
M services/files/shared_impl.cc View 1 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
viettrungluu
https://codereview.chromium.org/1355403002/diff/1/examples/echo_terminal/main.cc File examples/echo_terminal/main.cc (right): https://codereview.chromium.org/1355403002/diff/1/examples/echo_terminal/main.cc#newcode44 examples/echo_terminal/main.cc:44: if (mojo::files::ERROR_OK != error) { In general, I (and ...
5 years, 3 months ago (2015-09-22 22:04:58 UTC) #2
johngro
https://codereview.chromium.org/1355403002/diff/1/examples/echo_terminal/main.cc File examples/echo_terminal/main.cc (right): https://codereview.chromium.org/1355403002/diff/1/examples/echo_terminal/main.cc#newcode44 examples/echo_terminal/main.cc:44: if (mojo::files::ERROR_OK != error) { On 2015/09/22 22:04:58, viettrungluu ...
5 years, 3 months ago (2015-09-22 22:24:12 UTC) #3
viettrungluu
lgtm
5 years, 3 months ago (2015-09-22 23:34:26 UTC) #4
johngro
5 years, 3 months ago (2015-09-22 23:58:06 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
08f574e5254fa87c80ce0f35be3ab25fdfc5958c (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698