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

Unified Diff: ui/base/ime/input_method_factory.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/aura/window.cc ('k') | ui/base/ime/linux/fake_input_method_context_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/input_method_factory.cc
diff --git a/ui/base/ime/input_method_factory.cc b/ui/base/ime/input_method_factory.cc
index 0a460561c9abff9993f407587a033806ffa152b3..91f2bd799e82a0dd771356f6d2c25c33adedc611 100644
--- a/ui/base/ime/input_method_factory.cc
+++ b/ui/base/ime/input_method_factory.cc
@@ -48,21 +48,21 @@ std::unique_ptr<InputMethod> CreateInputMethod(
}
if (g_input_method_set_for_testing)
- return base::WrapUnique(new MockInputMethod(delegate));
+ return base::MakeUnique<MockInputMethod>(delegate);
#if defined(OS_CHROMEOS)
- return base::WrapUnique(new InputMethodChromeOS(delegate));
+ return base::MakeUnique<InputMethodChromeOS>(delegate);
#elif defined(OS_WIN)
- return base::WrapUnique(new InputMethodWin(delegate, widget));
+ return base::MakeUnique<InputMethodWin>(delegate, widget);
#elif defined(OS_MACOSX)
- return base::WrapUnique(new InputMethodMac(delegate));
+ return base::MakeUnique<InputMethodMac>(delegate);
#elif defined(USE_AURA) && defined(OS_LINUX) && defined(USE_X11) && \
!defined(OS_CHROMEOS)
- return base::WrapUnique(new InputMethodAuraLinux(delegate));
+ return base::MakeUnique<InputMethodAuraLinux>(delegate);
#elif defined(OS_ANDROID)
- return base::WrapUnique(new InputMethodAndroid(delegate));
+ return base::MakeUnique<InputMethodAndroid>(delegate);
#else
- return base::WrapUnique(new InputMethodMinimal(delegate));
+ return base::MakeUnique<InputMethodMinimal>(delegate);
#endif
}
« no previous file with comments | « ui/aura/window.cc ('k') | ui/base/ime/linux/fake_input_method_context_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698