diff options
author | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-06 20:09:34 +0000 |
---|---|---|
committer | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-06 20:09:34 +0000 |
commit | e87756663c751faea164d8deddbfccbfbbb1cfca (patch) | |
tree | 269ac3d28f509b63046674aa1c1204288bf2292b /chrome/browser/web_contents_view_win.cc | |
parent | 120671afa85fa5bcbe689c5078d0eeb6449b3b6d (diff) | |
download | chromium_src-e87756663c751faea164d8deddbfccbfbbb1cfca.zip chromium_src-e87756663c751faea164d8deddbfccbfbbb1cfca.tar.gz chromium_src-e87756663c751faea164d8deddbfccbfbbb1cfca.tar.bz2 |
Reverting the autofill popu CL as it creates perf regression.
TBR=nsylvain
Review URL: http://codereview.chromium.org/9460
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4908 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/web_contents_view_win.cc')
-rw-r--r-- | chrome/browser/web_contents_view_win.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/chrome/browser/web_contents_view_win.cc b/chrome/browser/web_contents_view_win.cc index 3ba7173..082fb89 100644 --- a/chrome/browser/web_contents_view_win.cc +++ b/chrome/browser/web_contents_view_win.cc @@ -378,8 +378,7 @@ WebContents* WebContentsViewWin::CreateNewWindowInternal( } RenderWidgetHostView* WebContentsViewWin::CreateNewWidgetInternal( - int route_id, - bool focus_on_show) { + int route_id) { // Create the widget and its associated view. // TODO(brettw) can widget creation be cross-platform? RenderWidgetHost* widget_host = @@ -395,7 +394,6 @@ RenderWidgetHostView* WebContentsViewWin::CreateNewWidgetInternal( widget_view->set_parent_hwnd( web_contents_->render_widget_host_view()->GetPluginHWND()); widget_view->set_close_on_deactivate(true); - widget_view->set_focus_on_show(focus_on_show); return widget_view; } @@ -440,8 +438,7 @@ void WebContentsViewWin::ShowCreatedWidgetInternal( widget_host_view_win->MoveWindow(initial_pos.x(), initial_pos.y(), initial_pos.width(), initial_pos.height(), TRUE); - widget_host_view_win->ShowWindow(widget_host_view_win->focus_on_show() ? - SW_SHOW : SW_SHOWNOACTIVATE); + widget_host_view_win->ShowWindow(SW_SHOW); widget_host->Init(); } |