| OLD | NEW |
| 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 |
| OLD | NEW |