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 721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
732 const base::FilePath& partition_path, | 732 const base::FilePath& partition_path, |
733 bool in_memory) { | 733 bool in_memory) { |
734 return NULL; | 734 return NULL; |
735 } | 735 } |
736 | 736 |
737 void TestingProfile::RequestMidiSysExPermission( | 737 void TestingProfile::RequestMidiSysExPermission( |
738 int render_process_id, | 738 int render_process_id, |
739 int render_view_id, | 739 int render_view_id, |
740 int bridge_id, | 740 int bridge_id, |
741 const GURL& requesting_frame, | 741 const GURL& requesting_frame, |
| 742 bool user_gesture, |
742 const MidiSysExPermissionCallback& callback) { | 743 const MidiSysExPermissionCallback& callback) { |
743 // Always reject requests for testing. | 744 // Always reject requests for testing. |
744 callback.Run(false); | 745 callback.Run(false); |
745 } | 746 } |
746 | 747 |
747 void TestingProfile::CancelMidiSysExPermissionRequest( | 748 void TestingProfile::CancelMidiSysExPermissionRequest( |
748 int render_process_id, | 749 int render_process_id, |
749 int render_view_id, | 750 int render_view_id, |
750 int bridge_id, | 751 int bridge_id, |
751 const GURL& requesting_frame) { | 752 const GURL& requesting_frame) { |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
957 path_, | 958 path_, |
958 delegate_, | 959 delegate_, |
959 extension_policy_, | 960 extension_policy_, |
960 pref_service_.Pass(), | 961 pref_service_.Pass(), |
961 incognito_, | 962 incognito_, |
962 guest_session_, | 963 guest_session_, |
963 managed_user_id_, | 964 managed_user_id_, |
964 policy_service_.Pass(), | 965 policy_service_.Pass(), |
965 testing_factories_)); | 966 testing_factories_)); |
966 } | 967 } |
OLD | NEW |