| Index: chrome/browser/tab_contents/spellchecker_submenu_observer.cc
|
| diff --git a/chrome/browser/tab_contents/spellchecker_submenu_observer.cc b/chrome/browser/tab_contents/spellchecker_submenu_observer.cc
|
| index b8f31ae7de4ec1b8b3195330771a2294d127d264..14281a6827216c69968a61071f1474408ffca7b8 100644
|
| --- a/chrome/browser/tab_contents/spellchecker_submenu_observer.cc
|
| +++ b/chrome/browser/tab_contents/spellchecker_submenu_observer.cc
|
| @@ -207,9 +207,8 @@ void SpellCheckerSubMenuObserver::ExecuteCommand(int command_id) {
|
| // "Stop asking Google for spelling suggestions" item, we directly update
|
| // the profile and stop integrating the spelling service immediately.
|
| if (!integrate_spelling_service_) {
|
| - gfx::Rect bounds = rvh->view()->GetViewBounds();
|
| - bounds.Inset(bounds.width() / 2, 0);
|
| - ConfirmBubbleModel::Show(rvh->view()->GetNativeView(), bounds.origin(),
|
| + gfx::Rect rect = rvh->view()->GetViewBounds();
|
| + ConfirmBubbleModel::Show(gfx::Point(rect.CenterPoint().x(), rect.y()),
|
| new SpellingBubbleModel(proxy_->GetProfile()));
|
| } else {
|
| Profile* profile = proxy_->GetProfile();
|
|
|