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 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
520 } | 520 } |
521 | 521 |
522 ExtensionService* TestingProfile::GetExtensionService() { | 522 ExtensionService* TestingProfile::GetExtensionService() { |
523 return extensions::ExtensionSystem::Get(this)->extension_service(); | 523 return extensions::ExtensionSystem::Get(this)->extension_service(); |
524 } | 524 } |
525 | 525 |
526 extensions::UserScriptMaster* TestingProfile::GetUserScriptMaster() { | 526 extensions::UserScriptMaster* TestingProfile::GetUserScriptMaster() { |
527 return extensions::ExtensionSystem::Get(this)->user_script_master(); | 527 return extensions::ExtensionSystem::Get(this)->user_script_master(); |
528 } | 528 } |
529 | 529 |
530 ExtensionProcessManager* TestingProfile::GetExtensionProcessManager() { | |
531 return extensions::ExtensionSystem::Get(this)->process_manager(); | |
532 } | |
533 | |
534 extensions::EventRouter* TestingProfile::GetExtensionEventRouter() { | 530 extensions::EventRouter* TestingProfile::GetExtensionEventRouter() { |
535 return extensions::ExtensionSystem::Get(this)->event_router(); | 531 return extensions::ExtensionSystem::Get(this)->event_router(); |
536 } | 532 } |
537 | 533 |
538 void TestingProfile::SetExtensionSpecialStoragePolicy( | 534 void TestingProfile::SetExtensionSpecialStoragePolicy( |
539 ExtensionSpecialStoragePolicy* extension_special_storage_policy) { | 535 ExtensionSpecialStoragePolicy* extension_special_storage_policy) { |
540 extension_special_storage_policy_ = extension_special_storage_policy; | 536 extension_special_storage_policy_ = extension_special_storage_policy; |
541 } | 537 } |
542 | 538 |
543 ExtensionSpecialStoragePolicy* | 539 ExtensionSpecialStoragePolicy* |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
846 scoped_ptr<TestingProfile> TestingProfile::Builder::Build() { | 842 scoped_ptr<TestingProfile> TestingProfile::Builder::Build() { |
847 DCHECK(!build_called_); | 843 DCHECK(!build_called_); |
848 build_called_ = true; | 844 build_called_ = true; |
849 return scoped_ptr<TestingProfile>(new TestingProfile( | 845 return scoped_ptr<TestingProfile>(new TestingProfile( |
850 path_, | 846 path_, |
851 delegate_, | 847 delegate_, |
852 extension_policy_, | 848 extension_policy_, |
853 pref_service_.Pass(), | 849 pref_service_.Pass(), |
854 user_cloud_policy_manager_.Pass())); | 850 user_cloud_policy_manager_.Pass())); |
855 } | 851 } |
OLD | NEW |