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

Issue 9404021: rlz: Remove #include <windows.h> (Closed)

Created:
8 years, 10 months ago by Nico
Modified:
8 years, 9 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

rlz: Remove #include <windows.h> To make this possible, replace _beginthread() with BrowserThread::PostTask(). This happens to fix a TODO. BUG=106213, 46579 TEST=no functionality change Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=122235

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Total comments: 6

Patch Set 5 : . #

Total comments: 2

Patch Set 6 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -24 lines) Patch
M chrome/browser/rlz/rlz.h View 1 2 3 3 chunks +5 lines, -8 lines 0 comments Download
M chrome/browser/rlz/rlz.cc View 1 2 3 4 5 2 chunks +6 lines, -15 lines 0 comments Download
M chrome/browser/rlz/rlz_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 16 (0 generated)
Nico
akalin for the threading thing that you consulted me on earlier today. rogerta for the ...
8 years, 10 months ago (2012-02-16 00:59:44 UTC) #1
akalin
http://codereview.chromium.org/9404021/diff/5001/chrome/browser/rlz/rlz.cc File chrome/browser/rlz/rlz.cc (right): http://codereview.chromium.org/9404021/diff/5001/chrome/browser/rlz/rlz.cc#newcode236 chrome/browser/rlz/rlz.cc:236: base::Bind(&RLZTracker::PingNowImpl, base::Unretained(this))); does PingNowImpl actually depend on instance variables? ...
8 years, 10 months ago (2012-02-16 01:03:36 UTC) #2
akalin
http://codereview.chromium.org/9404021/diff/5001/chrome/browser/rlz/rlz.cc File chrome/browser/rlz/rlz.cc (right): http://codereview.chromium.org/9404021/diff/5001/chrome/browser/rlz/rlz.cc#newcode252 chrome/browser/rlz/rlz.cc:252: SendFinancialPing(brand, lang, referral)) { does this do network IO ...
8 years, 10 months ago (2012-02-16 01:08:24 UTC) #3
Nico
Thanks! http://codereview.chromium.org/9404021/diff/5001/chrome/browser/rlz/rlz.cc File chrome/browser/rlz/rlz.cc (right): http://codereview.chromium.org/9404021/diff/5001/chrome/browser/rlz/rlz.cc#newcode236 chrome/browser/rlz/rlz.cc:236: base::Bind(&RLZTracker::PingNowImpl, base::Unretained(this))); On 2012/02/16 01:03:36, akalin wrote: > ...
8 years, 10 months ago (2012-02-16 01:11:41 UTC) #4
Nico
http://codereview.chromium.org/9404021/diff/5001/chrome/browser/rlz/rlz.cc File chrome/browser/rlz/rlz.cc (right): http://codereview.chromium.org/9404021/diff/5001/chrome/browser/rlz/rlz.cc#newcode252 chrome/browser/rlz/rlz.cc:252: SendFinancialPing(brand, lang, referral)) { On 2012/02/16 01:08:25, akalin wrote: ...
8 years, 10 months ago (2012-02-16 01:13:30 UTC) #5
akalin
lgtm http://codereview.chromium.org/9404021/diff/1007/chrome/browser/rlz/rlz.cc File chrome/browser/rlz/rlz.cc (right): http://codereview.chromium.org/9404021/diff/1007/chrome/browser/rlz/rlz.cc#newcode231 chrome/browser/rlz/rlz.cc:231: // TODO(thakis): Once akalin's TaskRunner around PostDelayedTask() is ...
8 years, 10 months ago (2012-02-16 01:22:24 UTC) #6
Nico
Thanks! rogerta, I'll wait for your thumbs up too. http://codereview.chromium.org/9404021/diff/1007/chrome/browser/rlz/rlz.cc File chrome/browser/rlz/rlz.cc (right): http://codereview.chromium.org/9404021/diff/1007/chrome/browser/rlz/rlz.cc#newcode231 chrome/browser/rlz/rlz.cc:231: ...
8 years, 10 months ago (2012-02-16 01:27:13 UTC) #7
akalin
On 2012/02/16 01:11:41, Nico wrote: > Yes, it seems to look at cache_lock_. The instance ...
8 years, 10 months ago (2012-02-16 01:40:54 UTC) #8
Roger Tawa OOO till Jul 10th
lgtm
8 years, 10 months ago (2012-02-16 01:56:17 UTC) #9
Roger Tawa OOO till Jul 10th
Hi Nico, Can you also resolve http://crbug.com/106213? Thanks.
8 years, 10 months ago (2012-02-16 01:57:15 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thakis@chromium.org/9404021/1009
8 years, 10 months ago (2012-02-16 02:01:10 UTC) #11
akalin
On 2012/02/16 02:01:10, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
8 years, 10 months ago (2012-02-16 02:34:07 UTC) #12
Nico
On 2012/02/16 02:34:07, akalin wrote: > On 2012/02/16 02:01:10, I haz the power (commit-bot) wrote: ...
8 years, 10 months ago (2012-02-16 02:40:43 UTC) #13
akalin
On 2012/02/16 02:40:43, Nico wrote: > On 2012/02/16 02:34:07, akalin wrote: > > On 2012/02/16 ...
8 years, 10 months ago (2012-02-16 03:34:51 UTC) #14
commit-bot: I haz the power
Change committed as 122235
8 years, 10 months ago (2012-02-16 03:41:52 UTC) #15
akalin
8 years, 9 months ago (2012-03-23 01:27:33 UTC) #16
On 2012/02/16 01:40:54, akalin wrote:

> Actually, I'd feel better if you added a WeakPtrFactory<RLZTracker> member
> variable and get weak ptrs from that.

Actually, I was wrong.  WeakPtrs aren't thread-safe, so you can't use them.

Powered by Google App Engine
This is Rietveld 408576698