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/browser/media/media_capture_devices_dispatcher.h" | 5 #include "chrome/browser/media/media_capture_devices_dispatcher.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/metrics/field_trial.h" | 9 #include "base/metrics/field_trial.h" |
10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 return | 126 return |
127 // Dev | 127 // Dev |
128 origin.spec() == "chrome-extension://enhhojjnijigcajfphajepfemndkmdlo/" || | 128 origin.spec() == "chrome-extension://enhhojjnijigcajfphajepfemndkmdlo/" || |
129 // Canary | 129 // Canary |
130 origin.spec() == "chrome-extension://hfaagokkkhdbgiakmmlclaapfelnkoah/" || | 130 origin.spec() == "chrome-extension://hfaagokkkhdbgiakmmlclaapfelnkoah/" || |
131 // Beta (internal) | 131 // Beta (internal) |
132 origin.spec() == "chrome-extension://fmfcbgogabcbclcofgocippekhfcmgfj/" || | 132 origin.spec() == "chrome-extension://fmfcbgogabcbclcofgocippekhfcmgfj/" || |
133 // Google Cast Beta | 133 // Google Cast Beta |
134 origin.spec() == "chrome-extension://dliochdbjfkdbacpmhlcpmleaejidimm/" || | 134 origin.spec() == "chrome-extension://dliochdbjfkdbacpmhlcpmleaejidimm/" || |
135 // Google Cast Stable | 135 // Google Cast Stable |
136 origin.spec() == "chrome-extension://boadgeojelhgndaghljhdicfkmllpafd/"; | 136 origin.spec() == "chrome-extension://boadgeojelhgndaghljhdicfkmllpafd/" || |
| 137 // http://crbug.com/457908 |
| 138 origin.spec() == "chrome-extension://ekpaaapppgpmolpcldedioblbkmijaca/" || |
| 139 origin.spec() == "chrome-extension://fjhoaacokmgbjemoflkofnenfaiekifl/"; |
137 } | 140 } |
138 | 141 |
139 bool IsExtensionWhitelistedForScreenCapture( | 142 bool IsExtensionWhitelistedForScreenCapture( |
140 const extensions::Extension* extension) { | 143 const extensions::Extension* extension) { |
141 #if defined(OS_CHROMEOS) | 144 #if defined(OS_CHROMEOS) |
142 std::string hash = base::SHA1HashString(extension->id()); | 145 std::string hash = base::SHA1HashString(extension->id()); |
143 std::string hex_hash = base::HexEncode(hash.c_str(), hash.length()); | 146 std::string hex_hash = base::HexEncode(hash.c_str(), hash.length()); |
144 | 147 |
145 // crbug.com/446688 | 148 // crbug.com/446688 |
146 return hex_hash == "4F25792AF1AA7483936DE29C07806F203C7170A0" || | 149 return hex_hash == "4F25792AF1AA7483936DE29C07806F203C7170A0" || |
(...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1133 | 1136 |
1134 void MediaCaptureDevicesDispatcher::SetTestAudioCaptureDevices( | 1137 void MediaCaptureDevicesDispatcher::SetTestAudioCaptureDevices( |
1135 const MediaStreamDevices& devices) { | 1138 const MediaStreamDevices& devices) { |
1136 test_audio_devices_ = devices; | 1139 test_audio_devices_ = devices; |
1137 } | 1140 } |
1138 | 1141 |
1139 void MediaCaptureDevicesDispatcher::SetTestVideoCaptureDevices( | 1142 void MediaCaptureDevicesDispatcher::SetTestVideoCaptureDevices( |
1140 const MediaStreamDevices& devices) { | 1143 const MediaStreamDevices& devices) { |
1141 test_video_devices_ = devices; | 1144 test_video_devices_ = devices; |
1142 } | 1145 } |
OLD | NEW |