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

Unified Diff: content/renderer/geolocation_dispatcher.cc

Issue 1832813002: Add mojom module suffix in .mojom files in content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Tom's comment Created 4 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
« no previous file with comments | « content/renderer/geolocation_dispatcher.h ('k') | content/renderer/media/media_permission_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/geolocation_dispatcher.cc
diff --git a/content/renderer/geolocation_dispatcher.cc b/content/renderer/geolocation_dispatcher.cc
index bc72ef822c156bfbdc5f5fa2422dc174e9149c45..59f0d44a987cc136eebf86e5af82c4d0f6534eb0 100644
--- a/content/renderer/geolocation_dispatcher.cc
+++ b/content/renderer/geolocation_dispatcher.cc
@@ -80,7 +80,7 @@ void GeolocationDispatcher::requestPermission(
int permission_request_id = pending_permissions_->add(permissionRequest);
permission_service_->RequestPermission(
- PermissionName::GEOLOCATION,
+ mojom::PermissionName::GEOLOCATION,
permissionRequest.getSecurityOrigin().toString().utf8(),
base::Bind(&GeolocationDispatcher::OnPermissionSet,
base::Unretained(this), permission_request_id));
@@ -93,14 +93,13 @@ void GeolocationDispatcher::cancelPermissionRequest(
}
// Permission for using geolocation has been set.
-void GeolocationDispatcher::OnPermissionSet(
- int permission_request_id,
- PermissionStatus status) {
+void GeolocationDispatcher::OnPermissionSet(int permission_request_id,
+ mojom::PermissionStatus status) {
WebGeolocationPermissionRequest permissionRequest;
if (!pending_permissions_->remove(permission_request_id, permissionRequest))
return;
- permissionRequest.setIsAllowed(status == PermissionStatus::GRANTED);
+ permissionRequest.setIsAllowed(status == mojom::PermissionStatus::GRANTED);
}
void GeolocationDispatcher::QueryNextPosition() {
« no previous file with comments | « content/renderer/geolocation_dispatcher.h ('k') | content/renderer/media/media_permission_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698