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

Unified Diff: chrome/browser/renderer_host/chrome_render_message_filter.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/renderer_host/chrome_render_message_filter.cc
diff --git a/chrome/browser/renderer_host/chrome_render_message_filter.cc b/chrome/browser/renderer_host/chrome_render_message_filter.cc
index ffc02235e6237c0f0cc077eee69323224881714a..b32c4417e49431e4d8478d6139abc74ed6e65f98 100644
--- a/chrome/browser/renderer_host/chrome_render_message_filter.cc
+++ b/chrome/browser/renderer_host/chrome_render_message_filter.cc
@@ -47,6 +47,7 @@
#endif
using content::BrowserThread;
+using extensions::APIPermission;
using WebKit::WebCache;
using WebKit::WebSecurityOrigin;
@@ -496,7 +497,7 @@ void ChromeRenderMessageFilter::OnAllowIndexedDB(int render_view_id,
void ChromeRenderMessageFilter::OnCanTriggerClipboardRead(
const GURL& origin, bool* allowed) {
*allowed = extension_info_map_->SecurityOriginHasAPIPermission(
- origin, render_process_id_, ExtensionAPIPermission::kClipboardRead);
+ origin, render_process_id_, APIPermission::kClipboardRead);
}
void ChromeRenderMessageFilter::OnCanTriggerClipboardWrite(
@@ -505,7 +506,7 @@ void ChromeRenderMessageFilter::OnCanTriggerClipboardWrite(
// for compatibility.
*allowed = (origin.SchemeIs(chrome::kExtensionScheme) ||
extension_info_map_->SecurityOriginHasAPIPermission(
- origin, render_process_id_, ExtensionAPIPermission::kClipboardWrite));
+ origin, render_process_id_, APIPermission::kClipboardWrite));
}
void ChromeRenderMessageFilter::OnGetCookies(
« no previous file with comments | « chrome/browser/geolocation/chrome_geolocation_permission_context.cc ('k') | chrome/browser/ui/extensions/shell_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698