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

Issue 12036094: Fix crash on spell check "Ask Google for suggestions" (Closed)

Created:
7 years, 11 months ago by James Cook
Modified:
7 years, 11 months ago
CC:
chromium-reviews, tfarina, ben+watch_chromium.org
Visibility:
Public.

Description

Fix crash on spell check "Ask Google for suggestions" POST COMMIT EDIT: In order to determine if widgets should be created in an Ash/metro context vs. a normal desktop context, erg@ recently introduced Widget::InitParams::context. There used to be a fallback handler for context being null, but this was removed intentionally in https://codereview.chromium.org/11829040. After the fallback was removed, Widgets that did not have a context or parent would cause a crash. That's why I added the DCHECK. * Set a parent window for the confirmation bubble's widget so Aura knows on which desktop to place it. * Add DCHECK to ensure Aura widgets have either a parent or a context to make this failure more obvious in the future. * Added unit test for ConfirmBubbleViews. * Removed duplicate anchor_point data in the bubble. BUG=171856 TEST=Added unit_tests ConfirmBubbleViewsTest.CreateAndClose Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=178757

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -9 lines) Patch
M chrome/browser/ui/views/confirm_bubble_views.h View 2 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/confirm_bubble_views.cc View 3 chunks +6 lines, -4 lines 1 comment Download
A chrome/browser/ui/views/confirm_bubble_views_unittest.cc View 1 chunk +90 lines, -0 lines 1 comment Download
M chrome/chrome_tests_unit.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/widget/native_widget_aura.cc View 1 chunk +4 lines, -0 lines 1 comment Download

Messages

Total messages: 7 (0 generated)
James Cook
Elliot, PTAL. This fix is a bit of overkill, but it seemed like we should ...
7 years, 11 months ago (2013-01-24 22:57:52 UTC) #1
Elliot Glaysher
+stevenjb: I like James' DCHECKs more here. Both of them may be overkill, but maybe ...
7 years, 11 months ago (2013-01-24 23:16:57 UTC) #2
stevenjb
https://codereview.chromium.org/12036094/diff/1/ui/views/widget/native_widget_aura.cc File ui/views/widget/native_widget_aura.cc (right): https://codereview.chromium.org/12036094/diff/1/ui/views/widget/native_widget_aura.cc#newcode99 ui/views/widget/native_widget_aura.cc:99: DCHECK(params.parent || params.context); nit: Since now at least two ...
7 years, 11 months ago (2013-01-24 23:32:33 UTC) #3
James Cook
sky, I can haz OWNERS please?
7 years, 11 months ago (2013-01-24 23:35:30 UTC) #4
sky
LGTM
7 years, 11 months ago (2013-01-25 00:52:26 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamescook@chromium.org/12036094/1
7 years, 11 months ago (2013-01-25 01:08:50 UTC) #6
commit-bot: I haz the power
7 years, 11 months ago (2013-01-25 04:55:50 UTC) #7
Message was sent while issue was closed.
Change committed as 178757

Powered by Google App Engine
This is Rietveld 408576698