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

Issue 556083002: Eliminate use of 'delete self' pattern in AttachmentUploaderImpl. (Closed)

Created:
6 years, 3 months ago by maniscalco
Modified:
6 years, 3 months ago
Reviewers:
pavely
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, zea+watch_chromium.org, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@persistentuploads-retry
Project:
chromium
Visibility:
Public.

Description

Eliminate use of 'delete self' pattern in AttachmentUploaderImpl. Prior to this change UploadState objects would synchronously notify AttachmentUploaderImpl that they were done and could be deleted. This meant they were still on the call stack when their destructor was invoked. While it worked, it was subtle and might lead to bugs in the future. BUG= Committed: https://crrev.com/58c7a2f84240aa23775167f9df91b7dbed66e3d6 Cr-Commit-Position: refs/heads/master@{#294218}

Patch Set 1 #

Patch Set 2 : Merge with master. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -35 lines) Patch
M sync/internal_api/attachments/attachment_uploader_impl.cc View 1 14 chunks +86 lines, -34 lines 0 comments Download
M sync/internal_api/public/attachments/attachment_uploader_impl.h View 2 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 7 (2 generated)
maniscalco
Pavel, would you please review this change? This fixes a long standing issue with AUI. ...
6 years, 3 months ago (2014-09-09 22:57:23 UTC) #2
pavely
lgtm
6 years, 3 months ago (2014-09-10 00:25:43 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maniscalco@chromium.org/556083002/20001
6 years, 3 months ago (2014-09-10 18:52:54 UTC) #5
commit-bot: I haz the power
Committed patchset #2 (id:20001) as 91c8b4f5295599709dfb981a11c074c07e52e0e6
6 years, 3 months ago (2014-09-10 20:37:58 UTC) #6
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 20:40:28 UTC) #7
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/58c7a2f84240aa23775167f9df91b7dbed66e3d6
Cr-Commit-Position: refs/heads/master@{#294218}

Powered by Google App Engine
This is Rietveld 408576698