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 67638462a0035b9241ac9782f1bdc33a42d63e50..e2bfe64640a7f345d7811477888155e3741c9754 100644 |
--- a/chrome/browser/ui/cocoa/autofill/autofill_popup_view_bridge.mm |
+++ b/chrome/browser/ui/cocoa/autofill/autofill_popup_view_bridge.mm |
@@ -75,7 +75,6 @@ void AutofillPopupViewBridge::Hide() { |
} |
void AutofillPopupViewBridge::Show() { |
- SetInitialBounds(); |
UpdateBoundsAndRedrawPopup(); |
[[controller_->container_view() window] addChildWindow:window_ |
ordered:NSWindowAbove]; |
@@ -111,20 +110,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); |