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

Unified Diff: ui/gl/gl_context.cc

Issue 2259753003: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/gfx/image/image.cc ('k') | ui/message_center/message_center_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_context.cc
diff --git a/ui/gl/gl_context.cc b/ui/gl/gl_context.cc
index eca9cb02e7f2307b94468a4ae542bb5e725f69dd..f38a7fcc3b18f48cebc7ec4a6016988ccd7bb5e9 100644
--- a/ui/gl/gl_context.cc
+++ b/ui/gl/gl_context.cc
@@ -111,8 +111,8 @@ const GLVersionInfo* GLContext::GetVersionInfo() {
if (!version_info_) {
std::string version = GetGLVersion();
std::string renderer = GetGLRenderer();
- version_info_ = base::WrapUnique(new GLVersionInfo(
- version.c_str(), renderer.c_str(), GetExtensions().c_str()));
+ version_info_ = base::MakeUnique<GLVersionInfo>(
+ version.c_str(), renderer.c_str(), GetExtensions().c_str());
}
return version_info_.get();
}
« no previous file with comments | « ui/gfx/image/image.cc ('k') | ui/message_center/message_center_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698