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

Issue 2616703005: media: Fix ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS check (Closed)

Created:
3 years, 11 months ago by xhwang
Modified:
3 years, 11 months ago
Reviewers:
Mike West, alokp
CC:
chromium-reviews, Peter Beverloo, mlamouri+watch-content_chromium.org, jam, darin-cc_chromium.org, jochen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

media: 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/shell/browser/shell_content_browser_client.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (8 generated)
xhwang
minor cleanup/fix, PTAL
3 years, 11 months ago (2017-01-05 19:59:26 UTC) #2
alokp
lgtm
3 years, 11 months ago (2017-01-05 20:53:13 UTC) #3
xhwang
TBRing mkwst@chromium.org on trivial change in content/shell
3 years, 11 months ago (2017-01-05 21:33:32 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2616703005/1
3 years, 11 months ago (2017-01-05 21:34:07 UTC) #10
commit-bot: I haz the power
3 years, 11 months ago (2017-01-06 01:20:14 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/59123b612a37738072b80870dfd1...

Powered by Google App Engine
This is Rietveld 408576698