| 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 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 733 callback.Run(false); | 733 callback.Run(false); |
| 734 } | 734 } |
| 735 | 735 |
| 736 void TestingProfile::CancelMIDISysExPermissionRequest( | 736 void TestingProfile::CancelMIDISysExPermissionRequest( |
| 737 int render_process_id, | 737 int render_process_id, |
| 738 int render_view_id, | 738 int render_view_id, |
| 739 int bridge_id, | 739 int bridge_id, |
| 740 const GURL& requesting_frame) { | 740 const GURL& requesting_frame) { |
| 741 } | 741 } |
| 742 | 742 |
| 743 void TestingProfile::RequestProtectedMediaIdentifierPermission( |
| 744 int render_process_id, |
| 745 int render_view_id, |
| 746 int bridge_id, |
| 747 int group_id, |
| 748 const GURL& requesting_frame, |
| 749 const ProtectedMediaIdentifierPermissionCallback& callback) { |
| 750 // Always reject requests for testing. |
| 751 callback.Run(false); |
| 752 } |
| 753 |
| 754 void TestingProfile::CancelProtectedMediaIdentifierPermissionRequests( |
| 755 int group_id) { |
| 756 } |
| 757 |
| 743 net::URLRequestContextGetter* TestingProfile::GetRequestContextForExtensions() { | 758 net::URLRequestContextGetter* TestingProfile::GetRequestContextForExtensions() { |
| 744 if (!extensions_request_context_.get()) | 759 if (!extensions_request_context_.get()) |
| 745 extensions_request_context_ = new TestExtensionURLRequestContextGetter(); | 760 extensions_request_context_ = new TestExtensionURLRequestContextGetter(); |
| 746 return extensions_request_context_.get(); | 761 return extensions_request_context_.get(); |
| 747 } | 762 } |
| 748 | 763 |
| 749 net::SSLConfigService* TestingProfile::GetSSLConfigService() { | 764 net::SSLConfigService* TestingProfile::GetSSLConfigService() { |
| 750 if (!GetRequestContext()) | 765 if (!GetRequestContext()) |
| 751 return NULL; | 766 return NULL; |
| 752 return GetRequestContext()->GetURLRequestContext()->ssl_config_service(); | 767 return GetRequestContext()->GetURLRequestContext()->ssl_config_service(); |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 930 path_, | 945 path_, |
| 931 delegate_, | 946 delegate_, |
| 932 extension_policy_, | 947 extension_policy_, |
| 933 pref_service_.Pass(), | 948 pref_service_.Pass(), |
| 934 incognito_, | 949 incognito_, |
| 935 guest_session_, | 950 guest_session_, |
| 936 managed_user_id_, | 951 managed_user_id_, |
| 937 policy_service_.Pass(), | 952 policy_service_.Pass(), |
| 938 testing_factories_)); | 953 testing_factories_)); |
| 939 } | 954 } |
| OLD | NEW |