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

Issue 6624023: Skip generation of stats, since code is now shared across threads (Closed)

Created:
9 years, 9 months ago by jar (doing other things)
Modified:
9 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Skip generation of stats, since code is now shared across threads The stats function was not written to be shared across threads, and recent use by sync on a second thread is causing it to malfunction (because it uses function level statics). r=wtc bug=74467 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=76989

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Total comments: 1

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M net/base/connection_type_histograms.cc View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
jar (doing other things)
9 years, 9 months ago (2011-03-04 19:10:31 UTC) #1
willchan no longer on Chromium
http://codereview.chromium.org/6624023/diff/1/net/base/connection_type_histograms.cc File net/base/connection_type_histograms.cc (right): http://codereview.chromium.org/6624023/diff/1/net/base/connection_type_histograms.cc#newcode26 net/base/connection_type_histograms.cc:26: DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); Unfortunately, net/ is not aware of browser stuff. ...
9 years, 9 months ago (2011-03-04 19:15:34 UTC) #2
cbentzel
I added code in net to ensure that a histogram was always accessed from the ...
9 years, 9 months ago (2011-03-04 19:43:12 UTC) #3
jar (doing other things)
9 years, 9 months ago (2011-03-04 20:55:51 UTC) #4
jar (doing other things)
The code you pointed at does indeed ensure (at least DCHECK) that the function is ...
9 years, 9 months ago (2011-03-04 20:59:51 UTC) #5
wtc
LGTM. http://codereview.chromium.org/6624023/diff/2002/net/base/connection_type_histograms.cc File net/base/connection_type_histograms.cc (right): http://codereview.chromium.org/6624023/diff/2002/net/base/connection_type_histograms.cc#newcode24 net/base/connection_type_histograms.cc:24: // TODO(wtc): 74467 Move these stats up to ...
9 years, 9 months ago (2011-03-04 21:05:24 UTC) #6
commit-bot: I haz the power
9 years, 9 months ago (2011-03-04 23:00:04 UTC) #7

Powered by Google App Engine
This is Rietveld 408576698