| Index: chrome/browser/ui/views/autofill/tooltip_icon.cc
|
| diff --git a/chrome/browser/ui/views/autofill/tooltip_icon.cc b/chrome/browser/ui/views/autofill/tooltip_icon.cc
|
| index ff243b7ca21c4769765eea3b7fabc08854fc3c7f..92f8e435c36a26dd819907db6bc417227dbc9449 100644
|
| --- a/chrome/browser/ui/views/autofill/tooltip_icon.cc
|
| +++ b/chrome/browser/ui/views/autofill/tooltip_icon.cc
|
| @@ -18,7 +18,7 @@ namespace autofill {
|
|
|
| namespace {
|
|
|
| -gfx::Insets GetPreferredInsets(views::View* view) {
|
| +gfx::Insets GetPreferredInsets(const views::View* view) {
|
| gfx::Size pref_size = view->GetPreferredSize();
|
| gfx::Rect local_bounds = view->GetLocalBounds();
|
| gfx::Point origin = local_bounds.CenterPoint();
|
| @@ -38,7 +38,7 @@ class TooltipBubble : public InfoBubble {
|
|
|
| protected:
|
| // InfoBubble:
|
| - virtual gfx::Rect GetAnchorRect() OVERRIDE {
|
| + virtual gfx::Rect GetAnchorRect() const OVERRIDE {
|
| gfx::Rect bounds = views::BubbleDelegateView::GetAnchorRect();
|
| bounds.Inset(GetPreferredInsets(anchor()));
|
| return bounds;
|
|
|