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

Side by Side Diff: content/shell/browser/shell_browser_main_parts.cc

Issue 2338063002: chromeos: Refactor D-Bus client type enum and stub vs. fake naming (Closed)
Patch Set: review comments Created 4 years, 3 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 "content/shell/browser/shell_browser_main_parts.h" 5 #include "content/shell/browser/shell_browser_main_parts.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 30 matching lines...) Expand all
41 #include "net/base/network_change_notifier.h" 41 #include "net/base/network_change_notifier.h"
42 #endif 42 #endif
43 43
44 #if defined(USE_AURA) && defined(USE_X11) 44 #if defined(USE_AURA) && defined(USE_X11)
45 #include "ui/events/devices/x11/touch_factory_x11.h" // nogncheck 45 #include "ui/events/devices/x11/touch_factory_x11.h" // nogncheck
46 #endif 46 #endif
47 #if !defined(OS_CHROMEOS) && defined(USE_AURA) && defined(OS_LINUX) 47 #if !defined(OS_CHROMEOS) && defined(USE_AURA) && defined(OS_LINUX)
48 #include "ui/base/ime/input_method_initializer.h" 48 #include "ui/base/ime/input_method_initializer.h"
49 #endif 49 #endif
50 #if defined(OS_CHROMEOS) 50 #if defined(OS_CHROMEOS)
51 #include "chromeos/dbus/dbus_client_types.h"
51 #include "chromeos/dbus/dbus_thread_manager.h" 52 #include "chromeos/dbus/dbus_thread_manager.h"
52 #include "device/bluetooth/dbus/bluez_dbus_manager.h" 53 #include "device/bluetooth/dbus/bluez_dbus_manager.h"
53 #elif defined(OS_LINUX) 54 #elif defined(OS_LINUX)
54 #include "device/bluetooth/dbus/dbus_bluez_manager_wrapper_linux.h" 55 #include "device/bluetooth/dbus/dbus_bluez_manager_wrapper_linux.h"
55 #endif 56 #endif
56 57
57 namespace content { 58 namespace content {
58 59
59 namespace { 60 namespace {
60 61
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 127
127 void ShellBrowserMainParts::PostMainMessageLoopStart() { 128 void ShellBrowserMainParts::PostMainMessageLoopStart() {
128 #if defined(OS_ANDROID) 129 #if defined(OS_ANDROID)
129 base::MessageLoopForUI::current()->Start(); 130 base::MessageLoopForUI::current()->Start();
130 #endif 131 #endif
131 132
132 #if defined(OS_CHROMEOS) 133 #if defined(OS_CHROMEOS)
133 chromeos::DBusThreadManager::Initialize(); 134 chromeos::DBusThreadManager::Initialize();
134 bluez::BluezDBusManager::Initialize( 135 bluez::BluezDBusManager::Initialize(
135 chromeos::DBusThreadManager::Get()->GetSystemBus(), 136 chromeos::DBusThreadManager::Get()->GetSystemBus(),
136 chromeos::DBusThreadManager::Get()->IsUsingStub( 137 chromeos::DBusThreadManager::Get()->IsUsingFake(
137 chromeos::DBusClientBundle::BLUETOOTH)); 138 chromeos::DBusClientType::BLUETOOTH));
138 #elif defined(OS_LINUX) 139 #elif defined(OS_LINUX)
139 bluez::DBusBluezManagerWrapperLinux::Initialize(); 140 bluez::DBusBluezManagerWrapperLinux::Initialize();
140 #endif 141 #endif
141 } 142 }
142 143
143 void ShellBrowserMainParts::PreEarlyInitialization() { 144 void ShellBrowserMainParts::PreEarlyInitialization() {
144 #if !defined(OS_CHROMEOS) && defined(USE_AURA) && defined(OS_LINUX) 145 #if !defined(OS_CHROMEOS) && defined(USE_AURA) && defined(OS_LINUX)
145 ui::InitializeInputMethodForTesting(); 146 ui::InitializeInputMethodForTesting();
146 #endif 147 #endif
147 #if defined(OS_ANDROID) 148 #if defined(OS_ANDROID)
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 device::BluetoothAdapterFactory::Shutdown(); 211 device::BluetoothAdapterFactory::Shutdown();
211 bluez::BluezDBusManager::Shutdown(); 212 bluez::BluezDBusManager::Shutdown();
212 chromeos::DBusThreadManager::Shutdown(); 213 chromeos::DBusThreadManager::Shutdown();
213 #elif defined(OS_LINUX) 214 #elif defined(OS_LINUX)
214 device::BluetoothAdapterFactory::Shutdown(); 215 device::BluetoothAdapterFactory::Shutdown();
215 bluez::DBusBluezManagerWrapperLinux::Shutdown(); 216 bluez::DBusBluezManagerWrapperLinux::Shutdown();
216 #endif 217 #endif
217 } 218 }
218 219
219 } // namespace 220 } // namespace
OLDNEW
« no previous file with comments | « chromeos/dbus/update_engine_client.cc ('k') | extensions/shell/browser/shell_browser_main_parts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698