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_profile.h" | 5 #include "chrome/test/base/testing_profile.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 | 8 |
9 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 } | 456 } |
457 | 457 |
458 extensions::UserScriptMaster* TestingProfile::GetUserScriptMaster() { | 458 extensions::UserScriptMaster* TestingProfile::GetUserScriptMaster() { |
459 return extensions::ExtensionSystem::Get(this)->user_script_master(); | 459 return extensions::ExtensionSystem::Get(this)->user_script_master(); |
460 } | 460 } |
461 | 461 |
462 ExtensionProcessManager* TestingProfile::GetExtensionProcessManager() { | 462 ExtensionProcessManager* TestingProfile::GetExtensionProcessManager() { |
463 return extensions::ExtensionSystem::Get(this)->process_manager(); | 463 return extensions::ExtensionSystem::Get(this)->process_manager(); |
464 } | 464 } |
465 | 465 |
466 ExtensionEventRouter* TestingProfile::GetExtensionEventRouter() { | 466 extensions::EventRouter* TestingProfile::GetExtensionEventRouter() { |
467 return extensions::ExtensionSystem::Get(this)->event_router(); | 467 return extensions::ExtensionSystem::Get(this)->event_router(); |
468 } | 468 } |
469 | 469 |
470 void TestingProfile::SetExtensionSpecialStoragePolicy( | 470 void TestingProfile::SetExtensionSpecialStoragePolicy( |
471 ExtensionSpecialStoragePolicy* extension_special_storage_policy) { | 471 ExtensionSpecialStoragePolicy* extension_special_storage_policy) { |
472 extension_special_storage_policy_ = extension_special_storage_policy; | 472 extension_special_storage_policy_ = extension_special_storage_policy; |
473 } | 473 } |
474 | 474 |
475 ExtensionSpecialStoragePolicy* | 475 ExtensionSpecialStoragePolicy* |
476 TestingProfile::GetExtensionSpecialStoragePolicy() { | 476 TestingProfile::GetExtensionSpecialStoragePolicy() { |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
729 } | 729 } |
730 | 730 |
731 bool TestingProfile::WasCreatedByVersionOrLater(const std::string& version) { | 731 bool TestingProfile::WasCreatedByVersionOrLater(const std::string& version) { |
732 return true; | 732 return true; |
733 } | 733 } |
734 | 734 |
735 base::Callback<ChromeURLDataManagerBackend*(void)> | 735 base::Callback<ChromeURLDataManagerBackend*(void)> |
736 TestingProfile::GetChromeURLDataManagerBackendGetter() const { | 736 TestingProfile::GetChromeURLDataManagerBackendGetter() const { |
737 return base::Callback<ChromeURLDataManagerBackend*(void)>(); | 737 return base::Callback<ChromeURLDataManagerBackend*(void)>(); |
738 } | 738 } |
OLD | NEW |