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 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
693 net::URLRequestContextGetter* | 693 net::URLRequestContextGetter* |
694 TestingProfile::GetMediaRequestContextForStoragePartition( | 694 TestingProfile::GetMediaRequestContextForStoragePartition( |
695 const base::FilePath& partition_path, | 695 const base::FilePath& partition_path, |
696 bool in_memory) { | 696 bool in_memory) { |
697 return NULL; | 697 return NULL; |
698 } | 698 } |
699 | 699 |
700 void TestingProfile::RequestMIDISysExPermission( | 700 void TestingProfile::RequestMIDISysExPermission( |
701 int render_process_id, | 701 int render_process_id, |
702 int render_view_id, | 702 int render_view_id, |
703 int bridge_id, | |
703 const GURL& requesting_frame, | 704 const GURL& requesting_frame, |
704 const MIDISysExPermissionCallback& callback) { | 705 const MIDISysExPermissionCallback& callback) { |
705 // Always reject requests for testing. | 706 // Always reject requests for testing. |
706 callback.Run(false); | 707 callback.Run(false); |
707 } | 708 } |
708 | 709 |
710 | |
scherkus (not reviewing)
2013/10/28 20:48:54
remove this extra blank line that seemed to sneak
Kibeom Kim (inactive)
2013/10/29 10:25:10
Done.
| |
709 net::URLRequestContextGetter* TestingProfile::GetRequestContextForExtensions() { | 711 net::URLRequestContextGetter* TestingProfile::GetRequestContextForExtensions() { |
710 if (!extensions_request_context_.get()) | 712 if (!extensions_request_context_.get()) |
711 extensions_request_context_ = new TestExtensionURLRequestContextGetter(); | 713 extensions_request_context_ = new TestExtensionURLRequestContextGetter(); |
712 return extensions_request_context_.get(); | 714 return extensions_request_context_.get(); |
713 } | 715 } |
714 | 716 |
715 net::SSLConfigService* TestingProfile::GetSSLConfigService() { | 717 net::SSLConfigService* TestingProfile::GetSSLConfigService() { |
716 if (!GetRequestContext()) | 718 if (!GetRequestContext()) |
717 return NULL; | 719 return NULL; |
718 return GetRequestContext()->GetURLRequestContext()->ssl_config_service(); | 720 return GetRequestContext()->GetURLRequestContext()->ssl_config_service(); |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
890 | 892 |
891 return scoped_ptr<TestingProfile>(new TestingProfile( | 893 return scoped_ptr<TestingProfile>(new TestingProfile( |
892 path_, | 894 path_, |
893 delegate_, | 895 delegate_, |
894 extension_policy_, | 896 extension_policy_, |
895 pref_service_.Pass(), | 897 pref_service_.Pass(), |
896 incognito_, | 898 incognito_, |
897 managed_user_id_, | 899 managed_user_id_, |
898 testing_factories_)); | 900 testing_factories_)); |
899 } | 901 } |
OLD | NEW |