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

Unified Diff: ui/ozone/platform/caca/ozone_platform_caca.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/ozone/demo/ozone_demo.cc ('k') | ui/ozone/platform/cast/client_native_pixmap_factory_cast.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/caca/ozone_platform_caca.cc
diff --git a/ui/ozone/platform/caca/ozone_platform_caca.cc b/ui/ozone/platform/caca/ozone_platform_caca.cc
index 43cccb645b0d00a0b9e9a8f06330d1d6c49d03b5..51874842455ceae1be268b390a6782ec8a6987f5 100644
--- a/ui/ozone/platform/caca/ozone_platform_caca.cc
+++ b/ui/ozone/platform/caca/ozone_platform_caca.cc
@@ -62,7 +62,7 @@ class OzonePlatformCaca : public OzonePlatform {
}
std::unique_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate()
override {
- return base::WrapUnique(new NativeDisplayDelegateOzone());
+ return base::MakeUnique<NativeDisplayDelegateOzone>();
}
void InitializeUI() override {
@@ -73,7 +73,7 @@ class OzonePlatformCaca : public OzonePlatform {
gpu_platform_support_host_.reset(CreateStubGpuPlatformSupportHost());
input_controller_ = CreateStubInputController();
KeyboardLayoutEngineManager::SetKeyboardLayoutEngine(
- base::WrapUnique(new NoKeyboardLayoutEngine()));
+ base::MakeUnique<NoKeyboardLayoutEngine>());
}
void InitializeGPU() override {
« no previous file with comments | « ui/ozone/demo/ozone_demo.cc ('k') | ui/ozone/platform/cast/client_native_pixmap_factory_cast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698