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

Issue 1544083002: Fix clang/win build after https://codereview.chromium.org/1543173002/ (Closed)

Created:
5 years ago by Nico
Modified:
4 years, 12 months ago
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix clang/win build after https://codereview.chromium.org/1543173002/ That change made metrics_aura.cc include build_config.h. Before, nothing did, so `defined(OS_WIN)` was always false (even on Windows!). Now that it isn't, clang-cl complains that a constant is unused on Windows, so move it to a more local scope. BUG=82385 R=tfarina@chromium.org TBR=avi Committed: https://crrev.com/3f0a8e7542c9d6824eb34bcdcc8f4b1738df2f08 Cr-Commit-Position: refs/heads/master@{#366771}

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -8 lines) Patch
M ui/views/metrics_aura.cc View 2 chunks +2 lines, -8 lines 1 comment Download

Messages

Total messages: 15 (6 generated)
Nico
5 years ago (2015-12-23 21:19:40 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1544083002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1544083002/1
5 years ago (2015-12-23 21:19:52 UTC) #5
tfarina
https://codereview.chromium.org/1544083002/diff/1/ui/views/metrics_aura.cc File ui/views/metrics_aura.cc (right): https://codereview.chromium.org/1544083002/diff/1/ui/views/metrics_aura.cc#newcode19 ui/views/metrics_aura.cc:19: const int kDefaultDoubleClickIntervalMs = 500; right, on Windows, this ...
5 years ago (2015-12-23 21:23:25 UTC) #7
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/3f0a8e7542c9d6824eb34bcdcc8f4b1738df2f08 Cr-Commit-Position: refs/heads/master@{#366771}
5 years ago (2015-12-23 21:32:56 UTC) #10
Avi (use Gerrit)
Nice! And this is what upsets me about all of this. Everyone was using OS_whatever ...
5 years ago (2015-12-24 00:35:39 UTC) #11
Avi (use Gerrit)
LGTM
5 years ago (2015-12-24 00:35:57 UTC) #12
Avi (use Gerrit)
On 2015/12/24 00:35:57, Avi wrote: > LGTM BTW, should we presubmit this? If you use ...
5 years ago (2015-12-24 01:48:13 UTC) #13
Nico
I'm generally not a huge fan of presubmits that try to parse code. This could ...
4 years, 12 months ago (2015-12-24 02:04:41 UTC) #14
Avi (use Gerrit)
4 years, 12 months ago (2015-12-24 02:40:20 UTC) #15
Message was sent while issue was closed.
I think everyone assumes that OS_* is done with a -D flag on the compiler. I
don't think anyone realizes you need a header file...

Powered by Google App Engine
This is Rietveld 408576698