| Index: chrome/browser/ui/browser.cc
|
| diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
|
| index 1745f7127ee3d5f88df2fbd04f1e5404886d4166..4bdedd4e0b19cca8a5679cd597679540873ca897 100644
|
| --- a/chrome/browser/ui/browser.cc
|
| +++ b/chrome/browser/ui/browser.cc
|
| @@ -1211,15 +1211,9 @@ void Browser::ShowValidationMessage(content::WebContents* web_contents,
|
| const gfx::Rect& anchor_in_root_view,
|
| const base::string16& main_text,
|
| const base::string16& sub_text) {
|
| - RenderWidgetHostView* rwhv = web_contents->GetRenderWidgetHostView();
|
| - if (rwhv) {
|
| - validation_message_bubble_ =
|
| - chrome::ValidationMessageBubble::CreateAndShow(
|
| - rwhv->GetRenderWidgetHost(),
|
| - anchor_in_root_view,
|
| - main_text,
|
| - sub_text);
|
| - }
|
| + validation_message_bubble_ =
|
| + TabDialogs::FromWebContents(web_contents)
|
| + ->ShowValidationMessage(anchor_in_root_view, main_text, sub_text);
|
| }
|
|
|
| void Browser::HideValidationMessage(content::WebContents* web_contents) {
|
|
|