OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/test/base/testing_browser_process.h" | 5 #include "chrome/test/base/testing_browser_process.h" |
6 | 6 |
7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
8 #include "chrome/browser/google/google_url_tracker.h" | 8 #include "chrome/browser/google/google_url_tracker.h" |
9 #include "chrome/browser/notifications/notification_ui_manager.h" | 9 #include "chrome/browser/notifications/notification_ui_manager.h" |
10 #include "chrome/browser/policy/browser_policy_connector.h" | 10 #include "chrome/browser/policy/browser_policy_connector.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 } | 36 } |
37 | 37 |
38 MetricsService* TestingBrowserProcess::metrics_service() { | 38 MetricsService* TestingBrowserProcess::metrics_service() { |
39 return NULL; | 39 return NULL; |
40 } | 40 } |
41 | 41 |
42 IOThread* TestingBrowserProcess::io_thread() { | 42 IOThread* TestingBrowserProcess::io_thread() { |
43 return io_thread_; | 43 return io_thread_; |
44 } | 44 } |
45 | 45 |
46 base::Thread* TestingBrowserProcess::file_thread() { | |
47 return NULL; | |
48 } | |
49 | |
50 base::Thread* TestingBrowserProcess::db_thread() { | |
51 return NULL; | |
52 } | |
53 | |
54 WatchDogThread* TestingBrowserProcess::watchdog_thread() { | 46 WatchDogThread* TestingBrowserProcess::watchdog_thread() { |
55 return NULL; | 47 return NULL; |
56 } | 48 } |
57 | 49 |
58 #if defined(OS_CHROMEOS) | |
59 base::Thread* TestingBrowserProcess::web_socket_proxy_thread() { | |
60 return NULL; | |
61 } | |
62 #endif | |
63 | |
64 ProfileManager* TestingBrowserProcess::profile_manager() { | 50 ProfileManager* TestingBrowserProcess::profile_manager() { |
65 return profile_manager_.get(); | 51 return profile_manager_.get(); |
66 } | 52 } |
67 | 53 |
68 void TestingBrowserProcess::SetProfileManager(ProfileManager* profile_manager) { | 54 void TestingBrowserProcess::SetProfileManager(ProfileManager* profile_manager) { |
69 profile_manager_.reset(profile_manager); | 55 profile_manager_.reset(profile_manager); |
70 } | 56 } |
71 | 57 |
72 PrefService* TestingBrowserProcess::local_state() { | 58 PrefService* TestingBrowserProcess::local_state() { |
73 return local_state_; | 59 return local_state_; |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 } | 238 } |
253 | 239 |
254 void TestingBrowserProcess::SetIOThread(IOThread* io_thread) { | 240 void TestingBrowserProcess::SetIOThread(IOThread* io_thread) { |
255 io_thread_ = io_thread; | 241 io_thread_ = io_thread; |
256 } | 242 } |
257 | 243 |
258 void TestingBrowserProcess::SetBrowserPolicyConnector( | 244 void TestingBrowserProcess::SetBrowserPolicyConnector( |
259 policy::BrowserPolicyConnector* connector) { | 245 policy::BrowserPolicyConnector* connector) { |
260 browser_policy_connector_.reset(connector); | 246 browser_policy_connector_.reset(connector); |
261 } | 247 } |
OLD | NEW |