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

Unified Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 1020683003: Make content::PermissionType an enum class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android compile Created 5 years, 9 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: content/browser/frame_host/render_frame_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index a40518fd7de3d4b3cb9df4934887840db25902ad..feefd7c41cd49f1e0185dddfde773bc76ccf078a 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -53,6 +53,7 @@
#include "content/public/browser/browser_plugin_guest_manager.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/content_browser_client.h"
+#include "content/public/browser/permission_type.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/render_widget_host_view.h"
#include "content/public/browser/stream_handle.h"
@@ -1948,7 +1949,7 @@ void RenderFrameHostImpl::CancelSuspendedNavigations() {
void RenderFrameHostImpl::DidUseGeolocationPermission() {
RenderFrameHost* top_frame = frame_tree_node()->frame_tree()->GetMainFrame();
GetContentClient()->browser()->RegisterPermissionUsage(
- PERMISSION_GEOLOCATION,
+ PermissionType::GEOLOCATION,
delegate_->GetAsWebContents(),
GetLastCommittedURL().GetOrigin(),
top_frame->GetLastCommittedURL().GetOrigin());
« no previous file with comments | « chrome/browser/content_settings/permission_context_uma_util.cc ('k') | content/browser/media/cdm/browser_cdm_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698