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

Side by Side Diff: chrome/browser/chromeos/input_method/ibus_controller.cc

Issue 11558017: Decouple input_method from BrowserThread (and content/). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix build failure. Created 8 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/chromeos/input_method/ibus_controller.h" 5 #include "chrome/browser/chromeos/input_method/ibus_controller.h"
6 6
7 #if defined(HAVE_IBUS) 7 #if defined(HAVE_IBUS)
8 #include "chrome/browser/chromeos/input_method/ibus_controller_impl.h" 8 #include "chrome/browser/chromeos/input_method/ibus_controller_impl.h"
9 #else 9 #else
10 #include "chrome/browser/chromeos/input_method/mock_ibus_controller.h" 10 #include "chrome/browser/chromeos/input_method/mock_ibus_controller.h"
11 #endif 11 #endif
12 12
13 namespace chromeos { 13 namespace chromeos {
14 namespace input_method { 14 namespace input_method {
15 15
16 IBusController::~IBusController() { 16 IBusController::~IBusController() {
17 } 17 }
18 18
19 // static 19 // static
20 IBusController* IBusController::Create() { 20 IBusController* IBusController::Create(
21 const scoped_refptr<base::SequencedTaskRunner>& default_task_runner,
22 const scoped_refptr<base::SequencedTaskRunner>& worker_task_runner) {
21 #if defined(HAVE_IBUS) 23 #if defined(HAVE_IBUS)
22 return new IBusControllerImpl; 24 return new IBusControllerImpl(default_task_runner, worker_task_runner);
23 #else 25 #else
24 return new MockIBusController; 26 return new MockIBusController;
25 #endif 27 #endif
26 } 28 }
27 29
28 } // namespace input_method 30 } // namespace input_method
29 } // namespace chromeos 31 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/input_method/ibus_controller.h ('k') | chrome/browser/chromeos/input_method/ibus_controller_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698