Index: chrome/browser/ui/extensions/shell_window.cc |
diff --git a/chrome/browser/ui/extensions/shell_window.cc b/chrome/browser/ui/extensions/shell_window.cc |
index d4475961d1c1b495856ae89ccf081fccb7060b26..0d4559259cc0057c6e13009d14f6af10a22d7113 100644 |
--- a/chrome/browser/ui/extensions/shell_window.cc |
+++ b/chrome/browser/ui/extensions/shell_window.cc |
@@ -43,6 +43,7 @@ using content::RenderViewHost; |
using content::ResourceDispatcherHost; |
using content::SiteInstance; |
using content::WebContents; |
+using extensions::APIPermission; |
namespace { |
const int kDefaultWidth = 512; |
@@ -154,14 +155,14 @@ void ShellWindow::RequestMediaAccessPermission( |
content::MediaStreamDeviceMap::const_iterator iter = |
request->devices.find(content::MEDIA_STREAM_DEVICE_TYPE_AUDIO_CAPTURE); |
if (iter != request->devices.end() && |
- extension()->HasAPIPermission(ExtensionAPIPermission::kAudioCapture) && |
+ extension()->HasAPIPermission(APIPermission::kAudioCapture) && |
!iter->second.empty()) { |
devices.push_back(iter->second[0]); |
} |
iter = request->devices.find(content::MEDIA_STREAM_DEVICE_TYPE_VIDEO_CAPTURE); |
if (iter != request->devices.end() && |
- extension()->HasAPIPermission(ExtensionAPIPermission::kVideoCapture) && |
+ extension()->HasAPIPermission(APIPermission::kVideoCapture) && |
!iter->second.empty()) { |
devices.push_back(iter->second[0]); |
} |