Index: chrome/browser/ui/views/tabs/tab_strip_unittest.cc |
diff --git a/chrome/browser/ui/views/tabs/tab_strip_unittest.cc b/chrome/browser/ui/views/tabs/tab_strip_unittest.cc |
index 99255cba7d9908f6606a05f7fc45dcf069043232..4196a7c12ac5077a4582f1164cad0d8d5d115148 100644 |
--- a/chrome/browser/ui/views/tabs/tab_strip_unittest.cc |
+++ b/chrome/browser/ui/views/tabs/tab_strip_unittest.cc |
@@ -154,9 +154,9 @@ class TabStripTest : public views::ViewsTestBase { |
// |tab| in |tab|'s coordinate space (including padding if |padding| |
// is true). |
gfx::Rect GetTabCloseHitTestMask(Tab* tab, bool padding) { |
- gfx::RectF bounds_f = tab->close_button_->GetContentsBounds(); |
+ gfx::RectF bounds_f = gfx::RectF(tab->close_button_->GetContentsBounds()); |
if (padding) |
- bounds_f = tab->close_button_->GetLocalBounds(); |
+ bounds_f = gfx::RectF(tab->close_button_->GetLocalBounds()); |
views::View::ConvertRectToTarget(tab->close_button_, tab, &bounds_f); |
return gfx::ToEnclosingRect(bounds_f); |
} |