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 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
624 } | 624 } |
625 | 625 |
626 void TestingProfile::ResetRequestContext() { | 626 void TestingProfile::ResetRequestContext() { |
627 // Any objects holding live URLFetchers should be deleted before the request | 627 // Any objects holding live URLFetchers should be deleted before the request |
628 // context is shut down. | 628 // context is shut down. |
629 TemplateURLFetcherFactory::ShutdownForProfile(this); | 629 TemplateURLFetcherFactory::ShutdownForProfile(this); |
630 | 630 |
631 request_context_ = NULL; | 631 request_context_ = NULL; |
632 } | 632 } |
633 | 633 |
634 net::URLRequestContextGetter* TestingProfile::GetRequestContextForMedia() { | 634 net::URLRequestContextGetter* TestingProfile::GetRequestContextForMedia( |
| 635 int renderer_child_id) { |
635 return NULL; | 636 return NULL; |
636 } | 637 } |
637 | 638 |
638 net::URLRequestContextGetter* TestingProfile::GetRequestContextForExtensions() { | 639 net::URLRequestContextGetter* TestingProfile::GetRequestContextForExtensions() { |
639 if (!extensions_request_context_) | 640 if (!extensions_request_context_) |
640 extensions_request_context_ = new TestExtensionURLRequestContextGetter(); | 641 extensions_request_context_ = new TestExtensionURLRequestContextGetter(); |
641 return extensions_request_context_.get(); | 642 return extensions_request_context_.get(); |
642 } | 643 } |
643 | 644 |
644 net::SSLConfigService* TestingProfile::GetSSLConfigService() { | 645 net::SSLConfigService* TestingProfile::GetSSLConfigService() { |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
805 build_called_ = true; | 806 build_called_ = true; |
806 return scoped_ptr<TestingProfile>(new TestingProfile( | 807 return scoped_ptr<TestingProfile>(new TestingProfile( |
807 path_, | 808 path_, |
808 delegate_, | 809 delegate_, |
809 extension_policy_, | 810 extension_policy_, |
810 pref_service_.Pass(), | 811 pref_service_.Pass(), |
811 user_cloud_policy_manager_.Pass())); | 812 user_cloud_policy_manager_.Pass())); |
812 } | 813 } |
813 | 814 |
814 | 815 |
OLD | NEW |