From 87a22e7b22583637338dbe55398ae6711430437f Mon Sep 17 00:00:00 2001 From: "robertshield@google.com" Date: Fri, 29 May 2009 21:10:37 +0000 Subject: Reverting 17223 (http://codereview.chromium.org/115943). Seems to make interactive UI tests unhappy. TBR=tommi Review URL: http://codereview.chromium.org/118029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17239 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/external_tab_container.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'chrome/browser/external_tab_container.cc') diff --git a/chrome/browser/external_tab_container.cc b/chrome/browser/external_tab_container.cc index 3a24366..a8490ae 100644 --- a/chrome/browser/external_tab_container.cc +++ b/chrome/browser/external_tab_container.cc @@ -130,7 +130,7 @@ void ExternalTabContainer::SetInitialFocus(bool reverse) { bool ExternalTabContainer::IsExternalTabContainer(HWND window) { if (GetProp(window, kWindowObjectKey) != NULL) return true; - + return false; } @@ -186,8 +186,7 @@ void ExternalTabContainer::AddNewContents(TabContents* source, WindowOpenDisposition disposition, const gfx::Rect& initial_pos, bool user_gesture) { - if (disposition == NEW_POPUP || disposition == NEW_WINDOW || - disposition == NEW_FOREGROUND_TAB || disposition == NEW_BACKGROUND_TAB) { + if (disposition == NEW_POPUP || disposition == NEW_WINDOW) { Browser::BuildPopupWindowHelper(source, new_contents, initial_pos, Browser::TYPE_POPUP, tab_contents_->profile(), true); @@ -236,7 +235,7 @@ void ExternalTabContainer::ToolbarSizeChanged(TabContents* source, void ExternalTabContainer::ForwardMessageToExternalHost( const std::string& message, const std::string& origin, const std::string& target) { - if (automation_) { + if(automation_) { automation_->Send( new AutomationMsg_ForwardMessageToExternalHost(0, tab_handle_, message, origin, target)); -- cgit v1.1