Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(751)

Unified Diff: chrome/browser/ui/extensions/shell_window.cc

Issue 10675007: Move each permission classes to its own files in extensions/permissions (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase again Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 b8efc8f3d961fd9701dd6afa12e390486f7e0a93..36a3e02210c111bacb3934373a28b3f883ffb101 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;
@@ -155,14 +156,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]);
}
« no previous file with comments | « chrome/browser/renderer_host/chrome_render_message_filter.cc ('k') | chrome/browser/ui/webui/ntp/app_launcher_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698