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

Issue 211033006: Move destruction of WebRtcLogUploader to post threads teardown. (Closed)

Created:
6 years, 9 months ago by Henrik Grunell
Modified:
6 years, 9 months ago
CC:
chromium-reviews, fischman+watch_chromium.org, feature-media-reviews_chromium.org, cbentzel+watch_chromium.org, wjia+watch_chromium.org, mcasas+watch_chromium.org
Visibility:
Public.

Description

Move destruction of WebRtcLogUploader to post threads teardown. Needs to outlive the file thread. Fixes rare crash. Previous attempt (https://codereview.chromium.org/174493003) caused an inconsistent leak (https://code.google.com/p/chromium/issues/detail?id=348928). This CL makes sure pending URLFetchers are deleted before threads teardown and removes the reference to system request context in WebRtcLoggingHandlerHost. NOTRY=true BUG=344892 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260167

Patch Set 1 #

Patch Set 2 : Proper fix. #

Total comments: 8

Patch Set 3 : Code review fixes. #

Patch Set 4 : Rebase. #

Patch Set 5 : Rebase #

Patch Set 6 : Fix for compile issue with vector of scoped_ptr. Add shutting_down_ flag. #

Patch Set 7 : Minor fix to unit test + rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -34 lines) Patch
M chrome/browser/browser_process_impl.cc View 1 2 3 4 5 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/media/webrtc_log_uploader.h View 1 2 3 4 5 7 chunks +10 lines, -7 lines 0 comments Download
M chrome/browser/media/webrtc_log_uploader.cc View 1 2 3 4 5 8 chunks +28 lines, -22 lines 0 comments Download
M chrome/browser/media/webrtc_log_uploader_unittest.cc View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/media/webrtc_logging_handler_host.h View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/media/webrtc_logging_handler_host.cc View 1 2 3 2 chunks +0 lines, -2 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Henrik Grunell
6 years, 9 months ago (2014-03-25 17:28:55 UTC) #1
Henrik Grunell
6 years, 9 months ago (2014-03-25 17:33:50 UTC) #2
Ami GONE FROM CHROMIUM
Can this be tested? https://codereview.chromium.org/211033006/diff/30001/chrome/browser/media/webrtc_log_uploader.cc File chrome/browser/media/webrtc_log_uploader.cc (right): https://codereview.chromium.org/211033006/diff/30001/chrome/browser/media/webrtc_log_uploader.cc#newcode45 chrome/browser/media/webrtc_log_uploader.cc:45: WebRtcLogUploader::~WebRtcLogUploader() { DCHECK the vector ...
6 years, 9 months ago (2014-03-25 17:53:17 UTC) #3
Henrik Grunell
I think it's somewhat complicated to test, we don't want to actually start URLFetchers with ...
6 years, 9 months ago (2014-03-26 06:59:02 UTC) #4
Henrik Grunell
Jochen, please review chrome/browser/browser_process_impl.cc.
6 years, 9 months ago (2014-03-26 07:41:34 UTC) #5
jochen (gone - plz use gerrit)
chrome/browser/browser_process_impl.cc lgtm
6 years, 9 months ago (2014-03-26 08:25:17 UTC) #6
Ami GONE FROM CHROMIUM
FWIW this should testable using FakeURLFetcherFactory and ScopedURLFetcherFactory. LGTM if you're in a hurry to ...
6 years, 9 months ago (2014-03-26 17:53:57 UTC) #7
Henrik Grunell
On 2014/03/26 17:53:57, Ami Fischman wrote: > FWIW this should testable using FakeURLFetcherFactory and > ...
6 years, 9 months ago (2014-03-27 09:50:31 UTC) #8
Henrik Grunell
The CQ bit was checked by grunell@chromium.org
6 years, 9 months ago (2014-03-27 09:55:52 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/grunell@chromium.org/211033006/160001
6 years, 9 months ago (2014-03-27 09:56:00 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-27 10:59:20 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_rel
6 years, 9 months ago (2014-03-27 10:59:21 UTC) #12
Henrik Grunell
Ami, there's a compile issue on non-Windows non-clang (afaict) with a vector of scoped_ptr. I ...
6 years, 9 months ago (2014-03-27 13:38:04 UTC) #13
Ami GONE FROM CHROMIUM
I was wondering how the scoped_ptr container was working for you but assumed technology had ...
6 years, 9 months ago (2014-03-27 16:57:18 UTC) #14
Henrik Grunell
The CQ bit was checked by grunell@chromium.org
6 years, 9 months ago (2014-03-28 08:33:05 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/grunell@chromium.org/211033006/190001
6 years, 9 months ago (2014-03-28 08:33:54 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-28 13:24:57 UTC) #17
commit-bot: I haz the power
Retried try job too often on ios_dbg_simulator for step(s) components_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_dbg_simulator&number=137236
6 years, 9 months ago (2014-03-28 13:24:58 UTC) #18
Henrik Grunell
The CQ bit was checked by grunell@chromium.org
6 years, 9 months ago (2014-03-28 16:41:34 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/grunell@chromium.org/211033006/190001
6 years, 9 months ago (2014-03-28 16:45:37 UTC) #20
commit-bot: I haz the power
6 years, 9 months ago (2014-03-28 16:50:27 UTC) #21
Message was sent while issue was closed.
Change committed as 260167

Powered by Google App Engine
This is Rietveld 408576698