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

Issue 4683002: Update internal state on undo to avoid a crash. (Closed)

Created:
10 years, 1 month ago by sadrul
Modified:
9 years, 6 months ago
CC:
chromium-reviews, ben+cc_chromium.org
Visibility:
Public.

Description

Update internal state on undo to avoid a crash. Update actions_in_current_group when removing an action so that it doesn't crash afterwards. BUG=61607, 62609 TEST=manual (see bug) Do not set text if it didn't change, because it registers a delete/insert undo-able action-couple. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=65609

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address James' comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -2 lines) Patch
M chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc View 1 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/undoview/undo_manager.c View 4 chunks +26 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
sadrul
10 years, 1 month ago (2010-11-08 17:51:53 UTC) #1
Evan Martin
Why doesn't this affect the upstream undoview? Can we send this patch upstream?
10 years, 1 month ago (2010-11-08 17:56:50 UTC) #2
James Su
http://codereview.chromium.org/4683002/diff/1/2 File chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc (right): http://codereview.chromium.org/4683002/diff/1/2#newcode1687 chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc:1687: } First, you need to update your local working ...
10 years, 1 month ago (2010-11-08 18:27:11 UTC) #3
sadrul
http://codereview.chromium.org/4683002/diff/1/2 File chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc (right): http://codereview.chromium.org/4683002/diff/1/2#newcode1687 chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc:1687: } On 2010/11/08 18:27:11, James Su wrote: > First, ...
10 years, 1 month ago (2010-11-08 19:57:37 UTC) #4
sadrul
On 2010/11/08 17:56:50, Evan Martin wrote: > Why doesn't this affect the upstream undoview? > ...
10 years, 1 month ago (2010-11-08 20:01:13 UTC) #5
James Su
On 2010/11/08 19:57:37, sadrul wrote: > http://codereview.chromium.org/4683002/diff/1/2 > File chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc (right): > > http://codereview.chromium.org/4683002/diff/1/2#newcode1687 > ...
10 years, 1 month ago (2010-11-08 23:01:49 UTC) #6
sadrul
[snip] > > The problem is, the GtkTextBuffer code deletes the existing text first, and ...
10 years, 1 month ago (2010-11-09 14:58:12 UTC) #7
James Su
On 2010/11/09 14:58:12, sadrul wrote: > [snip] > > > The problem is, the GtkTextBuffer ...
10 years, 1 month ago (2010-11-09 16:59:21 UTC) #8
sadrul
[snip] > Thanks. Then this CL looks good to me. The trybots are happy. Evan, ...
10 years, 1 month ago (2010-11-10 00:40:25 UTC) #9
evanm
LGTM
10 years, 1 month ago (2010-11-10 00:48:58 UTC) #10
sadrul
10 years, 1 month ago (2010-11-10 01:00:23 UTC) #11
On 2010/11/10 00:48:58, evanm wrote:
> LGTM

Thanks. Committed and pushed!

Powered by Google App Engine
This is Rietveld 408576698