| Index: chrome/browser/ui/cocoa/autofill/autofill_popup_view_bridge.mm
|
| diff --git a/chrome/browser/ui/cocoa/autofill/autofill_popup_view_bridge.mm b/chrome/browser/ui/cocoa/autofill/autofill_popup_view_bridge.mm
|
| index b247f471ec005af0e2e71c7c7b5a91faad9cb6a1..08245546b4d7400b6744e9b0499f3715c8f9c0b0 100644
|
| --- a/chrome/browser/ui/cocoa/autofill/autofill_popup_view_bridge.mm
|
| +++ b/chrome/browser/ui/cocoa/autofill/autofill_popup_view_bridge.mm
|
| @@ -45,7 +45,6 @@ void AutofillPopupViewBridge::Hide() {
|
| }
|
|
|
| void AutofillPopupViewBridge::Show() {
|
| - SetInitialBounds();
|
| UpdateBoundsAndRedrawPopup();
|
| [[controller_->container_view() window] addChildWindow:window_
|
| ordered:NSWindowAbove];
|
| @@ -71,20 +70,6 @@ void AutofillPopupViewBridge::UpdateBoundsAndRedrawPopup() {
|
| [window_ setFrame:frame display:YES];
|
| }
|
|
|
| -void AutofillPopupViewBridge::SetInitialBounds() {
|
| - // The bounds rect in Chrome's screen coordinates. The popup should be
|
| - // positioned just below the element which initiated it.
|
| - gfx::Rect bounds(controller_->element_bounds().x(),
|
| - controller_->element_bounds().bottom(),
|
| - controller_->GetPopupRequiredWidth(),
|
| - controller_->GetPopupRequiredHeight());
|
| -
|
| - // TODO(isherman): Position the popup correctly if it can't fit below the text
|
| - // field: http://crbug.com/164603
|
| -
|
| - controller_->SetPopupBounds(bounds);
|
| -}
|
| -
|
| AutofillPopupView* AutofillPopupView::Create(
|
| AutofillPopupController* controller) {
|
| return new AutofillPopupViewBridge(controller);
|
|
|