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

Issue 185003005: Fix race condition in uploading feedback reports. (Closed)

Created:
6 years, 9 months ago by rkc
Modified:
6 years, 9 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Fix race condition in uploading feedback reports. It is possible that if the browser starts and shuts down really quickly, we may end up with a race where the context passed to LoadReports has been nullified. We can completely avoid this race by simply passing in the user directory to LoadReportsAndQueue since the method doesn't really need the context for anything else. R=zork@chromium.org BUG=345805 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=254314

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -13 lines) Patch
M chrome/browser/feedback/feedback_profile_observer.cc View 1 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/feedback/feedback_report.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/feedback/feedback_report.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/feedback/feedback_uploader.h View 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
rkc
6 years, 9 months ago (2014-02-28 22:27:56 UTC) #1
Vitaly Buka (NO REVIEWS)
lgtm https://codereview.chromium.org/185003005/diff/1/chrome/browser/feedback/feedback_profile_observer.cc File chrome/browser/feedback/feedback_profile_observer.cc (right): https://codereview.chromium.org/185003005/diff/1/chrome/browser/feedback/feedback_profile_observer.cc#newcode55 chrome/browser/feedback/feedback_profile_observer.cc:55: base::Bind( Maybe this ways is better? BrowserThread::PostBlockingPoolTask( FROM_HERE, ...
6 years, 9 months ago (2014-02-28 22:39:10 UTC) #2
rkc
https://codereview.chromium.org/185003005/diff/1/chrome/browser/feedback/feedback_profile_observer.cc File chrome/browser/feedback/feedback_profile_observer.cc (right): https://codereview.chromium.org/185003005/diff/1/chrome/browser/feedback/feedback_profile_observer.cc#newcode55 chrome/browser/feedback/feedback_profile_observer.cc:55: base::Bind( On 2014/02/28 22:39:10, Vitaly Buka wrote: > Maybe ...
6 years, 9 months ago (2014-02-28 22:41:21 UTC) #3
rkc
The CQ bit was checked by rkc@chromium.org
6 years, 9 months ago (2014-02-28 22:52:00 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rkc@chromium.org/185003005/20001
6 years, 9 months ago (2014-02-28 22:54:37 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rkc@chromium.org/185003005/20001
6 years, 9 months ago (2014-03-01 01:07:25 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rkc@chromium.org/185003005/20001
6 years, 9 months ago (2014-03-01 01:29:30 UTC) #7
commit-bot: I haz the power
6 years, 9 months ago (2014-03-01 01:41:05 UTC) #8
Message was sent while issue was closed.
Change committed as 254314

Powered by Google App Engine
This is Rietveld 408576698