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 20 matching lines...) Expand all Loading... |
31 #endif // defined(ENABLE_CONFIGURATION_POLICY) | 31 #endif // defined(ENABLE_CONFIGURATION_POLICY) |
32 | 32 |
33 #if defined(ENABLE_MESSAGE_CENTER) && defined(USE_ASH) | 33 #if defined(ENABLE_MESSAGE_CENTER) && defined(USE_ASH) |
34 #include "ash/shell.h" | 34 #include "ash/shell.h" |
35 #endif | 35 #endif |
36 | 36 |
37 #if defined(ENABLE_MESSAGE_CENTER) | 37 #if defined(ENABLE_MESSAGE_CENTER) |
38 #include "ui/message_center/message_center.h" | 38 #include "ui/message_center/message_center.h" |
39 #endif | 39 #endif |
40 | 40 |
| 41 #if defined(OS_CHROMEOS) |
| 42 #include "chrome/browser/policy/policy_change_watcher.h" |
| 43 #endif |
| 44 |
41 // static | 45 // static |
42 TestingBrowserProcess* TestingBrowserProcess::GetGlobal() { | 46 TestingBrowserProcess* TestingBrowserProcess::GetGlobal() { |
43 return static_cast<TestingBrowserProcess*>(g_browser_process); | 47 return static_cast<TestingBrowserProcess*>(g_browser_process); |
44 } | 48 } |
45 | 49 |
46 TestingBrowserProcess::TestingBrowserProcess() | 50 TestingBrowserProcess::TestingBrowserProcess() |
47 : notification_service_(content::NotificationService::Create()), | 51 : notification_service_(content::NotificationService::Create()), |
48 module_ref_count_(0), | 52 module_ref_count_(0), |
49 app_locale_("en"), | 53 app_locale_("en"), |
50 #if !defined(OS_IOS) | 54 #if !defined(OS_IOS) |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 #if defined(OS_IOS) | 326 #if defined(OS_IOS) |
323 NOTIMPLEMENTED(); | 327 NOTIMPLEMENTED(); |
324 return NULL; | 328 return NULL; |
325 #else | 329 #else |
326 if (!media_file_system_registry_) | 330 if (!media_file_system_registry_) |
327 media_file_system_registry_.reset(new chrome::MediaFileSystemRegistry()); | 331 media_file_system_registry_.reset(new chrome::MediaFileSystemRegistry()); |
328 return media_file_system_registry_.get(); | 332 return media_file_system_registry_.get(); |
329 #endif | 333 #endif |
330 } | 334 } |
331 | 335 |
| 336 #if defined(OS_CHROMEOS) |
| 337 policy::DevicePolicyChangeWatcher* |
| 338 TestingBrowserProcess::device_policy_change_watcher() { |
| 339 return NULL; |
| 340 } |
| 341 #endif |
| 342 |
332 void TestingBrowserProcess::PlatformSpecificCommandLineProcessing( | 343 void TestingBrowserProcess::PlatformSpecificCommandLineProcessing( |
333 const CommandLine& command_line) { | 344 const CommandLine& command_line) { |
334 } | 345 } |
335 | 346 |
336 void TestingBrowserProcess::SetBookmarkPromptController( | 347 void TestingBrowserProcess::SetBookmarkPromptController( |
337 BookmarkPromptController* controller) { | 348 BookmarkPromptController* controller) { |
338 #if !defined(OS_IOS) | 349 #if !defined(OS_IOS) |
339 bookmark_prompt_controller_.reset(controller); | 350 bookmark_prompt_controller_.reset(controller); |
340 #endif | 351 #endif |
341 } | 352 } |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 #endif | 392 #endif |
382 } | 393 } |
383 | 394 |
384 void TestingBrowserProcess::SetSafeBrowsingService( | 395 void TestingBrowserProcess::SetSafeBrowsingService( |
385 SafeBrowsingService* sb_service) { | 396 SafeBrowsingService* sb_service) { |
386 #if !defined(OS_IOS) | 397 #if !defined(OS_IOS) |
387 NOTIMPLEMENTED(); | 398 NOTIMPLEMENTED(); |
388 sb_service_ = sb_service; | 399 sb_service_ = sb_service; |
389 #endif | 400 #endif |
390 } | 401 } |
OLD | NEW |