Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(947)

Unified Diff: chrome/browser/ui/views/dropdown_bar_view.cc

Issue 1513153002: Border::CreateBorderPainter now takes a unique_ptr, not a raw pointer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@border-unittest
Patch Set: Rebase (rest of border switched to unique_ptr). Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/views/border.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/dropdown_bar_view.cc
diff --git a/chrome/browser/ui/views/dropdown_bar_view.cc b/chrome/browser/ui/views/dropdown_bar_view.cc
index d2ea308ca69f04c803df2ba75a30d62aa4e7d379..4eaf5434b0699d7464bee3a75dc0326a65488129 100644
--- a/chrome/browser/ui/views/dropdown_bar_view.cc
+++ b/chrome/browser/ui/views/dropdown_bar_view.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/ui/views/dropdown_bar_view.h"
#include "base/macros.h"
+#include "base/memory/ptr_util.h"
#include "chrome/browser/themes/theme_service.h"
#include "chrome/browser/ui/view_ids.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
@@ -103,5 +104,6 @@ void DropdownBarView::SetBorderFromIds(int left_border_image_id,
int border_image_ids[3] = {left_border_image_id, middle_border_image_id,
right_border_image_id};
SetBorder(views::Border::CreateBorderPainter(
- new views::HorizontalPainter(border_image_ids), gfx::Insets()));
+ base::WrapUnique(new views::HorizontalPainter(border_image_ids)),
+ gfx::Insets()));
}
« no previous file with comments | « no previous file | ui/views/border.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698