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 |
709 net::URLRequestContextGetter* TestingProfile::GetRequestContextForExtensions() { | 710 net::URLRequestContextGetter* TestingProfile::GetRequestContextForExtensions() { |
710 if (!extensions_request_context_.get()) | 711 if (!extensions_request_context_.get()) |
711 extensions_request_context_ = new TestExtensionURLRequestContextGetter(); | 712 extensions_request_context_ = new TestExtensionURLRequestContextGetter(); |
712 return extensions_request_context_.get(); | 713 return extensions_request_context_.get(); |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
890 | 891 |
891 return scoped_ptr<TestingProfile>(new TestingProfile( | 892 return scoped_ptr<TestingProfile>(new TestingProfile( |
892 path_, | 893 path_, |
893 delegate_, | 894 delegate_, |
894 extension_policy_, | 895 extension_policy_, |
895 pref_service_.Pass(), | 896 pref_service_.Pass(), |
896 incognito_, | 897 incognito_, |
897 managed_user_id_, | 898 managed_user_id_, |
898 testing_factories_)); | 899 testing_factories_)); |
899 } | 900 } |
OLD | NEW |