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

Issue 1524853002: Don't use a delgating constructor passing a member variable. (Closed)

Created:
5 years ago by bcwhite
Modified:
5 years ago
CC:
chromium-reviews, asvitkine+watch_chromium.org, vmpstr+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't use a delgating constructor passing a member variable. Don't try to delegate behavior to the constructor below that accepts a Matadata pointer by passing &local_meta_. Such cannot be reliably passed because it has not yet been constructed -- no member variables have; the class itself is in the middle of being constructed. BUG=569187 Committed: https://crrev.com/0fa944d5a0fa7e0d722b735b0866dc652c9134c1 Cr-Commit-Position: refs/heads/master@{#365084}

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -1 line) Patch
M base/metrics/histogram_samples.cc View 1 chunk +9 lines, -1 line 3 comments Download

Depends on Patchset:

Messages

Total messages: 13 (6 generated)
bcwhite
5 years ago (2015-12-14 18:38:09 UTC) #2
Alexei Svitkine (slow)
lgtm, please expand the CL description to have the same info as you put in ...
5 years ago (2015-12-14 18:54:42 UTC) #3
bcwhite
CL description expanded. https://codereview.chromium.org/1524853002/diff/1/base/metrics/histogram_samples.cc File base/metrics/histogram_samples.cc (right): https://codereview.chromium.org/1524853002/diff/1/base/metrics/histogram_samples.cc#newcode75 base/metrics/histogram_samples.cc:75: DCHECK(meta_->id == 0 || meta_->id == ...
5 years ago (2015-12-14 19:11:08 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1524853002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1524853002/1
5 years ago (2015-12-14 20:20:07 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years ago (2015-12-14 20:26:05 UTC) #9
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/0fa944d5a0fa7e0d722b735b0866dc652c9134c1 Cr-Commit-Position: refs/heads/master@{#365084}
5 years ago (2015-12-14 20:28:08 UTC) #11
Nico
5 years ago (2015-12-14 20:49:01 UTC) #13
Message was sent while issue was closed.
https://codereview.chromium.org/1524853002/diff/1/base/metrics/histogram_samp...
File base/metrics/histogram_samples.cc (right):

https://codereview.chromium.org/1524853002/diff/1/base/metrics/histogram_samp...
base/metrics/histogram_samples.cc:63: // Matadata pointer by passing
&local_meta_. Such cannot be reliably passed
typo matadata

Powered by Google App Engine
This is Rietveld 408576698