| Index: chrome/browser/renderer_context_menu/spelling_menu_observer.cc
|
| diff --git a/chrome/browser/renderer_context_menu/spelling_menu_observer.cc b/chrome/browser/renderer_context_menu/spelling_menu_observer.cc
|
| index f43533810af4058cfcd3357eeddadabb192e437b..aed19202d36af4a43b1cf20ce14c1fccd964c3b5 100644
|
| --- a/chrome/browser/renderer_context_menu/spelling_menu_observer.cc
|
| +++ b/chrome/browser/renderer_context_menu/spelling_menu_observer.cc
|
| @@ -298,11 +298,8 @@ void SpellingMenuObserver::ExecuteCommand(int command_id) {
|
| content::RenderViewHost* rvh = proxy_->GetRenderViewHost();
|
| gfx::Rect rect = rvh->GetView()->GetViewBounds();
|
| chrome::ShowConfirmBubble(
|
| -#if defined(TOOLKIT_VIEWS)
|
| proxy_->GetWebContents()->GetTopLevelNativeWindow(),
|
| -#else
|
| rvh->GetView()->GetNativeView(),
|
| -#endif
|
| gfx::Point(rect.CenterPoint().x(), rect.y()),
|
| new SpellingBubbleModel(proxy_->GetProfile(),
|
| proxy_->GetWebContents(),
|
| @@ -327,12 +324,13 @@ void SpellingMenuObserver::ExecuteCommand(int command_id) {
|
| if (!integrate_spelling_service_.GetValue()) {
|
| content::RenderViewHost* rvh = proxy_->GetRenderViewHost();
|
| gfx::Rect rect = rvh->GetView()->GetViewBounds();
|
| - chrome::ShowConfirmBubble(rvh->GetView()->GetNativeView(),
|
| - gfx::Point(rect.CenterPoint().x(), rect.y()),
|
| - new SpellingBubbleModel(
|
| - proxy_->GetProfile(),
|
| - proxy_->GetWebContents(),
|
| - true));
|
| + chrome::ShowConfirmBubble(
|
| + proxy_->GetWebContents()->GetTopLevelNativeWindow(),
|
| + rvh->GetView()->GetNativeView(),
|
| + gfx::Point(rect.CenterPoint().x(), rect.y()),
|
| + new SpellingBubbleModel(proxy_->GetProfile(),
|
| + proxy_->GetWebContents(),
|
| + true));
|
| } else {
|
| Profile* profile = proxy_->GetProfile();
|
| if (profile) {
|
|
|