| 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 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 722 const base::FilePath& partition_path, | 722 const base::FilePath& partition_path, |
| 723 bool in_memory) { | 723 bool in_memory) { |
| 724 return NULL; | 724 return NULL; |
| 725 } | 725 } |
| 726 | 726 |
| 727 void TestingProfile::RequestMidiSysExPermission( | 727 void TestingProfile::RequestMidiSysExPermission( |
| 728 int render_process_id, | 728 int render_process_id, |
| 729 int render_view_id, | 729 int render_view_id, |
| 730 int bridge_id, | 730 int bridge_id, |
| 731 const GURL& requesting_frame, | 731 const GURL& requesting_frame, |
| 732 bool user_gesture, |
| 732 const MidiSysExPermissionCallback& callback) { | 733 const MidiSysExPermissionCallback& callback) { |
| 733 // Always reject requests for testing. | 734 // Always reject requests for testing. |
| 734 callback.Run(false); | 735 callback.Run(false); |
| 735 } | 736 } |
| 736 | 737 |
| 737 void TestingProfile::CancelMidiSysExPermissionRequest( | 738 void TestingProfile::CancelMidiSysExPermissionRequest( |
| 738 int render_process_id, | 739 int render_process_id, |
| 739 int render_view_id, | 740 int render_view_id, |
| 740 int bridge_id, | 741 int bridge_id, |
| 741 const GURL& requesting_frame) { | 742 const GURL& requesting_frame) { |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 946 path_, | 947 path_, |
| 947 delegate_, | 948 delegate_, |
| 948 extension_policy_, | 949 extension_policy_, |
| 949 pref_service_.Pass(), | 950 pref_service_.Pass(), |
| 950 incognito_, | 951 incognito_, |
| 951 guest_session_, | 952 guest_session_, |
| 952 managed_user_id_, | 953 managed_user_id_, |
| 953 policy_service_.Pass(), | 954 policy_service_.Pass(), |
| 954 testing_factories_)); | 955 testing_factories_)); |
| 955 } | 956 } |
| OLD | NEW |