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

Side by Side Diff: ui/base/ime/linux/fake_input_method_context_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 unified diff | Download patch
« no previous file with comments | « ui/base/ime/input_method_factory.cc ('k') | ui/base/nine_image_painter_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/base/ime/linux/fake_input_method_context_factory.h" 5 #include "ui/base/ime/linux/fake_input_method_context_factory.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "ui/base/ime/linux/fake_input_method_context.h" 8 #include "ui/base/ime/linux/fake_input_method_context.h"
9 9
10 namespace ui { 10 namespace ui {
11 11
12 FakeInputMethodContextFactory::FakeInputMethodContextFactory() {} 12 FakeInputMethodContextFactory::FakeInputMethodContextFactory() {}
13 13
14 std::unique_ptr<LinuxInputMethodContext> 14 std::unique_ptr<LinuxInputMethodContext>
15 FakeInputMethodContextFactory::CreateInputMethodContext( 15 FakeInputMethodContextFactory::CreateInputMethodContext(
16 LinuxInputMethodContextDelegate* /* delegate */, 16 LinuxInputMethodContextDelegate* /* delegate */,
17 bool is_simple) const { 17 bool is_simple) const {
18 return base::WrapUnique(new FakeInputMethodContext()); 18 return base::MakeUnique<FakeInputMethodContext>();
19 } 19 }
20 20
21 } // namespace ui 21 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/ime/input_method_factory.cc ('k') | ui/base/nine_image_painter_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698