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

Unified Diff: chrome/browser/guest_view/web_view/chrome_web_view_permission_helper_delegate.cc

Issue 2675483002: Replace PermissionType in chrome/ with ContentSettingsType (Closed)
Patch Set: rebase Created 3 years, 10 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/guest_view/web_view/chrome_web_view_permission_helper_delegate.cc
diff --git a/chrome/browser/guest_view/web_view/chrome_web_view_permission_helper_delegate.cc b/chrome/browser/guest_view/web_view/chrome_web_view_permission_helper_delegate.cc
index a1e8d93346b5130c302598d04995ba935d7af67a..f70ed0715aa01d5fd2163385f5a27376f16a2e07 100644
--- a/chrome/browser/guest_view/web_view/chrome_web_view_permission_helper_delegate.cc
+++ b/chrome/browser/guest_view/web_view/chrome_web_view_permission_helper_delegate.cc
@@ -11,7 +11,6 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/features.h"
#include "chrome/common/render_messages.h"
-#include "content/public/browser/permission_type.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/render_view_host.h"
@@ -226,7 +225,7 @@ void ChromeWebViewPermissionHelperDelegate::OnGeolocationPermissionResponse(
Profile* profile = Profile::FromBrowserContext(
web_view_guest()->browser_context());
PermissionManager::Get(profile)->RequestPermission(
- content::PermissionType::GEOLOCATION, web_contents->GetMainFrame(),
+ CONTENT_SETTINGS_TYPE_GEOLOCATION, web_contents->GetMainFrame(),
web_view_guest()
->embedder_web_contents()
->GetLastCommittedURL()

Powered by Google App Engine
This is Rietveld 408576698