Index: ui/views/button_drag_utils.cc |
diff --git a/ui/views/button_drag_utils.cc b/ui/views/button_drag_utils.cc |
index cca89ea1eb217f05be760057d0ee7f418cd1f55b..5c2aed7922b38564c8795239e7a0de3dc0bfb2e3 100644 |
--- a/ui/views/button_drag_utils.cc |
+++ b/ui/views/button_drag_utils.cc |
@@ -43,9 +43,9 @@ void SetDragImage(const GURL& url, |
ui::OSExchangeData* data, |
views::Widget* widget) { |
// Create a button to render the drag image for us. |
- views::LabelButton button(NULL, |
- title.empty() ? base::UTF8ToUTF16(url.spec()) |
- : title); |
+ views::LabelButton button(nullptr); |
+ button.InitAsTextbutton(title.empty() ? base::UTF8ToUTF16(url.spec()) |
+ : title); |
button.SetTextSubpixelRenderingEnabled(false); |
const ui::NativeTheme* theme = |
widget ? widget->GetNativeTheme() : ui::NativeTheme::instance(); |