OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/capture_access_handler_base.h" | 5 #include "chrome/browser/media/capture_access_handler_base.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
10 #include "chrome/browser/media/media_capture_devices_dispatcher.h" | 10 #include "chrome/browser/media/webrtc/media_capture_devices_dispatcher.h" |
11 #include "content/public/browser/browser_thread.h" | 11 #include "content/public/browser/browser_thread.h" |
12 #include "extensions/common/extension.h" | 12 #include "extensions/common/extension.h" |
13 | 13 |
14 #if defined(OS_CHROMEOS) | 14 #if defined(OS_CHROMEOS) |
15 #include "base/sha1.h" | 15 #include "base/sha1.h" |
16 #endif // defined(OS_CHROMEOS) | 16 #endif // defined(OS_CHROMEOS) |
17 | 17 |
18 using content::BrowserThread; | 18 using content::BrowserThread; |
19 | 19 |
20 // Tracks MEDIA_DESKTOP/TAB_VIDEO_CAPTURE sessions. Sessions are removed when | 20 // Tracks MEDIA_DESKTOP/TAB_VIDEO_CAPTURE sessions. Sessions are removed when |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 #else | 175 #else |
176 return false; | 176 return false; |
177 #endif // defined(OS_CHROMEOS) | 177 #endif // defined(OS_CHROMEOS) |
178 } | 178 } |
179 | 179 |
180 bool CaptureAccessHandlerBase::IsBuiltInExtension(const GURL& origin) { | 180 bool CaptureAccessHandlerBase::IsBuiltInExtension(const GURL& origin) { |
181 return | 181 return |
182 // Feedback Extension. | 182 // Feedback Extension. |
183 origin.spec() == "chrome-extension://gfdkimpbcpahaombhbimeihdjnejgicl/"; | 183 origin.spec() == "chrome-extension://gfdkimpbcpahaombhbimeihdjnejgicl/"; |
184 } | 184 } |
OLD | NEW |