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

Unified Diff: ui/views/bubble/bubble_border.cc

Issue 2637383003: Change Painter factory functions to unique_ptr (Closed)
Patch Set: msw review Created 3 years, 11 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 | « ui/views/background.cc ('k') | ui/views/controls/button/label_button_border.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/bubble/bubble_border.cc
diff --git a/ui/views/bubble/bubble_border.cc b/ui/views/bubble/bubble_border.cc
index f932250426d90a36279765869bc4eef4e96d8545..0aed6efeba726dbdd4b93c4b905ada3aa7d74959 100644
--- a/ui/views/bubble/bubble_border.cc
+++ b/ui/views/bubble/bubble_border.cc
@@ -42,7 +42,7 @@ BorderImages::BorderImages(const int border_image_ids[],
if (!border_image_ids)
return;
- border_painter.reset(Painter::CreateImageGridPainter(border_image_ids));
+ border_painter = Painter::CreateImageGridPainter(border_image_ids);
ResourceBundle& rb = ResourceBundle::GetSharedInstance();
border_thickness = rb.GetImageSkiaNamed(border_image_ids[0])->width();
« no previous file with comments | « ui/views/background.cc ('k') | ui/views/controls/button/label_button_border.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698