Descriptionmedia: Fix ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS check
Replace
if (ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS)
with
if defined(ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS)
The former was working because some compilers predefine FOO to be 1 when
-DFOO is specified. For example:
https://gcc.gnu.org/onlinedocs/gcc/Preprocessor-Options.html
But I am not sure whether this is true for all compilers. Hence we
probably should not depend on it.
Long term, we should switch to use BUILDFLAG to avoid this.
TBR=mkwst@chromium.org
BUG=596252
Review-Url: https://codereview.chromium.org/2616703005
Cr-Commit-Position: refs/heads/master@{#441782}
Committed: https://chromium.googlesource.com/chromium/src/+/59123b612a37738072b80870dfd18a7e8eaae241
Patch Set 1 #
Messages
Total messages: 13 (8 generated)
|