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

Unified Diff: chrome/browser/ui/libgtk2ui/gtk2_ui.cc

Issue 145033006: views: Make View::set_border() take a scoped_ptr<>. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Further renaming Created 6 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
Index: chrome/browser/ui/libgtk2ui/gtk2_ui.cc
diff --git a/chrome/browser/ui/libgtk2ui/gtk2_ui.cc b/chrome/browser/ui/libgtk2ui/gtk2_ui.cc
index 1ae080f809992c9a08f3ecf787232b6124c448cd..78c072e64b03727e653b20f2458d93f58c5f640e 100644
--- a/chrome/browser/ui/libgtk2ui/gtk2_ui.cc
+++ b/chrome/browser/ui/libgtk2ui/gtk2_ui.cc
@@ -527,10 +527,12 @@ gfx::Image Gtk2UI::GetIconForContentType(
return gfx::Image(image_skia);
}
-views::Border* Gtk2UI::CreateNativeBorder(
+scoped_ptr<views::Border> Gtk2UI::CreateNativeBorder(
views::CustomButton* owning_button,
- views::Border* border) {
- return new Gtk2Border(this, owning_button, border);
+ scoped_ptr<views::Border> border) {
+ return scoped_ptr<views::Border>(new Gtk2Border(this,
+ owning_button,
+ border.Pass()));
}
void Gtk2UI::AddWindowButtonOrderObserver(

Powered by Google App Engine
This is Rietveld 408576698