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 "ui/base/ime/linux/fake_input_method_context.h" | 8 #include "ui/base/ime/linux/fake_input_method_context.h" |
8 | 9 |
9 namespace ui { | 10 namespace ui { |
10 | 11 |
11 FakeInputMethodContextFactory::FakeInputMethodContextFactory() {} | 12 FakeInputMethodContextFactory::FakeInputMethodContextFactory() {} |
12 | 13 |
13 scoped_ptr<LinuxInputMethodContext> | 14 std::unique_ptr<LinuxInputMethodContext> |
14 FakeInputMethodContextFactory::CreateInputMethodContext( | 15 FakeInputMethodContextFactory::CreateInputMethodContext( |
15 LinuxInputMethodContextDelegate* /* delegate */, | 16 LinuxInputMethodContextDelegate* /* delegate */, |
16 bool is_simple) const { | 17 bool is_simple) const { |
17 return make_scoped_ptr(new FakeInputMethodContext()); | 18 return base::WrapUnique(new FakeInputMethodContext()); |
18 } | 19 } |
19 | 20 |
20 } // namespace ui | 21 } // namespace ui |
OLD | NEW |