summaryrefslogtreecommitdiffstats
path: root/ash
diff options
context:
space:
mode:
Diffstat (limited to 'ash')
-rw-r--r--ash/drag_drop/drag_image_view.cc2
-rw-r--r--ash/tooltips/tooltip_controller.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/ash/drag_drop/drag_image_view.cc b/ash/drag_drop/drag_image_view.cc
index 29619605..366e036 100644
--- a/ash/drag_drop/drag_image_view.cc
+++ b/ash/drag_drop/drag_image_view.cc
@@ -32,7 +32,7 @@ DragImageView::DragImageView() : views::ImageView() {
widget_->SetAlwaysOnTop(true);
// We are owned by the DragDropController.
- set_parent_owned(false);
+ set_owned_by_client();
}
DragImageView::~DragImageView() {
diff --git a/ash/tooltips/tooltip_controller.cc b/ash/tooltips/tooltip_controller.cc
index c1aaa0f..cd1edca 100644
--- a/ash/tooltips/tooltip_controller.cc
+++ b/ash/tooltips/tooltip_controller.cc
@@ -99,7 +99,7 @@ class TooltipController::Tooltip {
views::Border::CreateSolidBorder(kTooltipBorderWidth,
kTooltipBorder));
}
- label_.set_parent_owned(false);
+ label_.set_owned_by_client();
widget_.reset(CreateTooltip());
widget_->SetContentsView(&label_);
widget_->Activate();