diff options
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/views/tabs/dragged_tab_view.cc | 4 | ||||
-rw-r--r-- | chrome/browser/views/tabs/dragged_tab_view.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/views/tabs/dragged_tab_view.cc b/chrome/browser/views/tabs/dragged_tab_view.cc index 54a8193..48750d713 100644 --- a/chrome/browser/views/tabs/dragged_tab_view.cc +++ b/chrome/browser/views/tabs/dragged_tab_view.cc @@ -38,7 +38,7 @@ DraggedTabView::DraggedTabView(TabContents* datasource, renderer_->UpdateData(datasource); - container_ = new views::ContainerWin; + container_.reset(new views::ContainerWin); container_->set_window_style(WS_POPUP); container_->set_window_ex_style( WS_EX_LAYERED | WS_EX_TOPMOST | WS_EX_TOOLWINDOW); @@ -51,7 +51,7 @@ DraggedTabView::~DraggedTabView() { if (close_animation_.IsAnimating()) close_animation_.Stop(); GetParent()->RemoveChildView(this); - container_->Close(); + container_->CloseNow(); } void DraggedTabView::MoveTo(const gfx::Point& screen_point) { diff --git a/chrome/browser/views/tabs/dragged_tab_view.h b/chrome/browser/views/tabs/dragged_tab_view.h index 6076acc..be809f4 100644 --- a/chrome/browser/views/tabs/dragged_tab_view.h +++ b/chrome/browser/views/tabs/dragged_tab_view.h @@ -76,7 +76,7 @@ class DraggedTabView : public views::View, int ScaleValue(int value); // The window that contains the DraggedTabView. - views::ContainerWin* container_; + scoped_ptr<views::ContainerWin> container_; // The renderer that paints the Tab shape. scoped_ptr<TabRenderer> renderer_; |