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

Side by Side Diff: ui/base/ime/linux/fake_input_method_context_factory.cc

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr Created 4 years, 8 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
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 "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
OLDNEW
« no previous file with comments | « ui/base/ime/linux/fake_input_method_context_factory.h ('k') | ui/base/ime/linux/linux_input_method_context_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698