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
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
I think it's somewhat complicated to test, we don't want to actually start
URLFetchers with the real URL etc. Needs some refactoring/rewriting.
The crash being fixed is racy, so I don't see that it can be tested.
There's a bug for getting rid of |post_data_| used for testing. I could make it
a general bug for improving the testing for this class, including this case.
Sounds good?
https://codereview.chromium.org/211033006/diff/30001/chrome/browser/media/web...
File chrome/browser/media/webrtc_log_uploader.cc (right):
https://codereview.chromium.org/211033006/diff/30001/chrome/browser/media/web...
chrome/browser/media/webrtc_log_uploader.cc:45:
WebRtcLogUploader::~WebRtcLogUploader() {
On 2014/03/25 17:53:17, Ami Fischman wrote:
> DCHECK the vector is empty.
Done.
https://codereview.chromium.org/211033006/diff/30001/chrome/browser/media/web...
chrome/browser/media/webrtc_log_uploader.cc:70: ++it) {
On 2014/03/25 17:53:17, Ami Fischman wrote:
> It's a vector, so you could
> for (size_t i = 0; i < url_fetchers_.size(); ++i)
> and save a couple of lines.
Done.
https://codereview.chromium.org/211033006/diff/30001/chrome/browser/media/web...
chrome/browser/media/webrtc_log_uploader.cc:73: found_in_vector = true;
On 2014/03/25 17:53:17, Ami Fischman wrote:
> can drop found_in_vector+break in favor of a return, and then LOG+delete
> unconditionally outside the loop.
Done.
https://codereview.chromium.org/211033006/diff/30001/chrome/browser/media/web...
chrome/browser/media/webrtc_log_uploader.cc:78: DLOG(WARNING) << "URLFetcher not
found in vector.";
On 2014/03/25 17:53:17, Ami Fischman wrote:
> Can this happen if there is a fetch in flight while Cancel is called? If so,
> seems unworthy of a warning.
> If this reflects a programming error then it should be a DCHECK (and drop the
> explicit delete).
Right. This should really not happen if cancelled. Changed it to NOTREACHED.
6 years, 9 months ago
(2014-03-26 08:25:17 UTC)
#6
chrome/browser/browser_process_impl.cc lgtm
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
FWIW this should testable using FakeURLFetcherFactory and
ScopedURLFetcherFactory.
LGTM if you're in a hurry to land this and want to follow up with the test in a
separate CL.
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
On 2014/03/26 17:53:57, Ami Fischman wrote:
> FWIW this should testable using FakeURLFetcherFactory and
> ScopedURLFetcherFactory.
OK, thanks.
> LGTM if you're in a hurry to land this and want to follow up with the test in
a
> separate CL.
Added this task to https://code.google.com/p/chromium/issues/detail?id=356076
Henrik Grunell
The CQ bit was checked by grunell@chromium.org
6 years, 9 months ago
(2014-03-27 09:55:52 UTC)
#9
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
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
Reviewers: Ami GONE FROM CHROMIUM, jochen (gone - plz use gerrit)
Base URL: svn://svn.chromium.org/chrome/trunk/src
Comments: 8