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

Issue 2026053002: Blimp: change logger to use switch/case for types. (Closed)

Created:
4 years, 6 months ago by Kevin M
Modified:
4 years, 6 months ago
Reviewers:
Wez
CC:
chromium-reviews, anandc+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, nyquist+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, lethalantidote+watch-blimp_chromium.org, dtrainor+watch-blimp_chromium.org, shaktisahu+watch-blimp_chromium.org, khushalsagar+watch-blimp_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Blimp: change logger to use switch/case for types. The current design of the logger allows for logging "modules" to be loaded into a dynamic map. This functionality is not providing any benefit at the moment, and it prevents the compiler from performing enum coverage checks at compile time. This CL changes the dynamic behavior to use a switch block instead. R=wez@chromium.org BUG= Committed: https://crrev.com/d008c80b9f35110a085fba5970ddc0d96877851b Cr-Commit-Position: refs/heads/master@{#398433}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Methods, not classes! #

Patch Set 3 : Inline the logging helper function. #

Total comments: 8

Patch Set 4 : wez feedback #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+261 lines, -307 lines) Patch
M blimp/client/feature/render_widget_feature.cc View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M blimp/common/logging.h View 1 chunk +1 line, -47 lines 0 comments Download
M blimp/common/logging.cc View 1 2 3 4 4 chunks +252 lines, -258 lines 0 comments Download
M blimp/common/proto/render_widget.proto View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
Kevin M
4 years, 6 months ago (2016-05-31 21:01:59 UTC) #1
Wez
https://codereview.chromium.org/2026053002/diff/1/blimp/common/logging.cc File blimp/common/logging.cc (right): https://codereview.chromium.org/2026053002/diff/1/blimp/common/logging.cc#newcode73 blimp/common/logging.cc:73: static void ExtractFields(const BlimpMessage& message, LogFields* output) { Looks ...
4 years, 6 months ago (2016-06-01 21:35:15 UTC) #2
Kevin M
4 years, 6 months ago (2016-06-02 18:04:13 UTC) #3
Kevin M
https://codereview.chromium.org/2026053002/diff/1/blimp/common/logging.cc File blimp/common/logging.cc (right): https://codereview.chromium.org/2026053002/diff/1/blimp/common/logging.cc#newcode73 blimp/common/logging.cc:73: static void ExtractFields(const BlimpMessage& message, LogFields* output) { On ...
4 years, 6 months ago (2016-06-02 18:05:00 UTC) #4
Wez
LGTM w/ nits https://codereview.chromium.org/2026053002/diff/40001/blimp/common/logging.cc File blimp/common/logging.cc (right): https://codereview.chromium.org/2026053002/diff/40001/blimp/common/logging.cc#newcode25 blimp/common/logging.cc:25: typedef std::vector<std::pair<std::string, std::string>> LogFields; nit: Style-guide ...
4 years, 6 months ago (2016-06-03 00:07:54 UTC) #5
Kevin M
https://codereview.chromium.org/2026053002/diff/40001/blimp/common/logging.cc File blimp/common/logging.cc (right): https://codereview.chromium.org/2026053002/diff/40001/blimp/common/logging.cc#newcode25 blimp/common/logging.cc:25: typedef std::vector<std::pair<std::string, std::string>> LogFields; On 2016/06/03 00:07:54, Wez wrote: ...
4 years, 6 months ago (2016-06-07 00:05:51 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2026053002/60001
4 years, 6 months ago (2016-06-07 00:35:58 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/16962) ios-device-gn on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 6 months ago (2016-06-07 00:38:37 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2026053002/80001
4 years, 6 months ago (2016-06-07 23:43:27 UTC) #14
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 6 months ago (2016-06-08 00:28:20 UTC) #15
commit-bot: I haz the power
4 years, 6 months ago (2016-06-08 00:29:37 UTC) #17
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/d008c80b9f35110a085fba5970ddc0d96877851b
Cr-Commit-Position: refs/heads/master@{#398433}

Powered by Google App Engine
This is Rietveld 408576698