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

Issue 12298022: Don't store the DateTimePicker client in a scoped_ptr. (Closed)

Created:
7 years, 10 months ago by Peter Beverloo
Modified:
7 years, 10 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Reset the date/time picker client in the RenderViewImpl destructor. Because the RenderDateTimePicker class is a RenderViewObserver, it'll register itself on the RenderViewImpl class causing it to be destroyed as the very last thing in ~RenderViewImpl() user code. However, because it's stored in a scoped_ptr<> we can end up deleting it twice. BUG=176495 NOTRY=True Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=183482

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M content/renderer/render_view_impl.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Peter Beverloo
+miguelg, avi/jam for review. This patch only affects Android and has been marked as a ...
7 years, 10 months ago (2013-02-18 17:37:55 UTC) #1
Miguel Garcia
lgtm https://codereview.chromium.org/12298022/diff/1/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/12298022/diff/1/content/renderer/render_view_impl.cc#newcode6478 content/renderer/render_view_impl.cc:6478: if (date_time_picker_client_ != NULL) (I introduced the original ...
7 years, 10 months ago (2013-02-18 17:48:48 UTC) #2
jam
it seems simpler to have "date_time_picker_client_.reset();" in the destructor?
7 years, 10 months ago (2013-02-19 16:24:43 UTC) #3
Peter Beverloo
On 2013/02/19 16:24:43, jam wrote: > it seems simpler to have "date_time_picker_client_.reset();" in the destructor? ...
7 years, 10 months ago (2013-02-19 16:43:59 UTC) #4
jam
lgtm
7 years, 10 months ago (2013-02-19 18:24:36 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/peter@chromium.org/12298022/2002
7 years, 10 months ago (2013-02-19 18:25:31 UTC) #6
klobag.chromium
On 2013/02/19 18:25:31, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
7 years, 10 months ago (2013-02-20 01:48:29 UTC) #7
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
7 years, 10 months ago (2013-02-20 10:16:49 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/peter@chromium.org/12298022/2002
7 years, 10 months ago (2013-02-20 11:24:34 UTC) #9
commit-bot: I haz the power
7 years, 10 months ago (2013-02-20 11:45:57 UTC) #10
Message was sent while issue was closed.
Change committed as 183482

Powered by Google App Engine
This is Rietveld 408576698