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 "chrome/test/base/testing_browser_process.h" | 5 #include "chrome/test/base/testing_browser_process.h" |
6 | 6 |
7 #include "base/prefs/pref_service.h" | 7 #include "base/prefs/pref_service.h" |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 } | 173 } |
174 | 174 |
175 net::URLRequestContextGetter* TestingBrowserProcess::system_request_context() { | 175 net::URLRequestContextGetter* TestingBrowserProcess::system_request_context() { |
176 return system_request_context_; | 176 return system_request_context_; |
177 } | 177 } |
178 | 178 |
179 #if defined(OS_CHROMEOS) | 179 #if defined(OS_CHROMEOS) |
180 chromeos::OomPriorityManager* TestingBrowserProcess::oom_priority_manager() { | 180 chromeos::OomPriorityManager* TestingBrowserProcess::oom_priority_manager() { |
181 return NULL; | 181 return NULL; |
182 } | 182 } |
| 183 |
| 184 chromeos::DeviceOAuth2TokenService* |
| 185 TestingBrowserProcess::device_oauth2_token_service() { |
| 186 return NULL; |
| 187 } |
183 #endif // defined(OS_CHROMEOS) | 188 #endif // defined(OS_CHROMEOS) |
184 | 189 |
185 extensions::EventRouterForwarder* | 190 extensions::EventRouterForwarder* |
186 TestingBrowserProcess::extension_event_router_forwarder() { | 191 TestingBrowserProcess::extension_event_router_forwarder() { |
187 return NULL; | 192 return NULL; |
188 } | 193 } |
189 | 194 |
190 NotificationUIManager* TestingBrowserProcess::notification_ui_manager() { | 195 NotificationUIManager* TestingBrowserProcess::notification_ui_manager() { |
191 #if defined(ENABLE_NOTIFICATIONS) | 196 #if defined(ENABLE_NOTIFICATIONS) |
192 if (!notification_ui_manager_.get()) | 197 if (!notification_ui_manager_.get()) |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 #endif | 391 #endif |
387 } | 392 } |
388 | 393 |
389 void TestingBrowserProcess::SetSafeBrowsingService( | 394 void TestingBrowserProcess::SetSafeBrowsingService( |
390 SafeBrowsingService* sb_service) { | 395 SafeBrowsingService* sb_service) { |
391 #if !defined(OS_IOS) | 396 #if !defined(OS_IOS) |
392 NOTIMPLEMENTED(); | 397 NOTIMPLEMENTED(); |
393 sb_service_ = sb_service; | 398 sb_service_ = sb_service; |
394 #endif | 399 #endif |
395 } | 400 } |
OLD | NEW |