OLD | NEW |
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 "chromeos/dbus/ibus/ibus_engine_factory_service.h" | 5 #include "chromeos/dbus/ibus/ibus_engine_factory_service.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 DISALLOW_COPY_AND_ASSIGN(IBusEngineFactoryServiceDaemonlessImpl); | 154 DISALLOW_COPY_AND_ASSIGN(IBusEngineFactoryServiceDaemonlessImpl); |
155 }; | 155 }; |
156 | 156 |
157 IBusEngineFactoryService::IBusEngineFactoryService() { | 157 IBusEngineFactoryService::IBusEngineFactoryService() { |
158 } | 158 } |
159 | 159 |
160 IBusEngineFactoryService::~IBusEngineFactoryService() { | 160 IBusEngineFactoryService::~IBusEngineFactoryService() { |
161 } | 161 } |
162 | 162 |
163 // static | 163 // static |
164 IBusEngineFactoryService* IBusEngineFactoryService::Create( | 164 IBusEngineFactoryService* IBusEngineFactoryService::Create() { |
165 dbus::Bus* bus, | 165 return new IBusEngineFactoryServiceDaemonlessImpl(); |
166 DBusClientImplementationType type) { | |
167 if (type == REAL_DBUS_CLIENT_IMPLEMENTATION) | |
168 return new IBusEngineFactoryServiceImpl(bus); | |
169 else | |
170 return new IBusEngineFactoryServiceDaemonlessImpl(); | |
171 } | 166 } |
172 | 167 |
173 } // namespace chromeos | 168 } // namespace chromeos |
OLD | NEW |