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

Issue 669783004: Invalidate weak pointer factory in statistics prefs on UI thread. (Closed)

Created:
6 years, 1 month ago by Not at Google. Contact bengr
Modified:
6 years, 1 month ago
Reviewers:
bengr
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Invalidate weak pointer factory in statistics prefs on UI thread. DataReductionProxyStatisticsPrefs is instantiated on UI thread and then its ownership is passed to IOThread. This causes weak_factory_ to be invalidated on a different thread from the one it is created on. This cl explicitly invalidates it on UI Thread. BUG=428931 Committed: https://crrev.com/e15038f26f1924d24faebba7e764e40439f14254 Cr-Commit-Position: refs/heads/master@{#302175}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Reorder InvalidateWeakPtrs(). #

Patch Set 3 : Remove comment. Sync to head. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
bengr
https://codereview.chromium.org/669783004/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.cc (right): https://codereview.chromium.org/669783004/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.cc#newcode42 components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.cc:42: weak_factory_.InvalidateWeakPtrs(); Should this be last? What happen if a ...
6 years, 1 month ago (2014-10-30 20:32:30 UTC) #2
bengr
lgtm https://codereview.chromium.org/669783004/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.cc (right): https://codereview.chromium.org/669783004/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.cc#newcode42 components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.cc:42: weak_factory_.InvalidateWeakPtrs(); On 2014/10/30 20:32:29, bengr wrote: > Should ...
6 years, 1 month ago (2014-10-30 20:33:53 UTC) #3
Not at Google. Contact bengr
https://codereview.chromium.org/669783004/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.cc (right): https://codereview.chromium.org/669783004/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.cc#newcode42 components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.cc:42: weak_factory_.InvalidateWeakPtrs(); On 2014/10/30 20:33:53, bengr wrote: > On 2014/10/30 ...
6 years, 1 month ago (2014-10-30 20:51:33 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/669783004/40001
6 years, 1 month ago (2014-10-30 21:57:45 UTC) #6
commit-bot: I haz the power
Committed patchset #3 (id:40001)
6 years, 1 month ago (2014-10-30 22:39:00 UTC) #7
commit-bot: I haz the power
6 years, 1 month ago (2014-10-30 22:39:34 UTC) #8
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/e15038f26f1924d24faebba7e764e40439f14254
Cr-Commit-Position: refs/heads/master@{#302175}

Powered by Google App Engine
This is Rietveld 408576698