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

Unified Diff: content/browser/permissions/permission_service_impl.h

Issue 2496653002: Part 2 of base::IDMap refactor to eliminate IDMapOwnPointer/IDMapExternalPointer modes (Closed)
Patch Set: typedefs => using statements, update comments in base/id_map.h Created 4 years 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/browser/manifest/manifest_manager_host.h ('k') | content/browser/quota_dispatcher_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/permissions/permission_service_impl.h
diff --git a/content/browser/permissions/permission_service_impl.h b/content/browser/permissions/permission_service_impl.h
index 9321ff4e2e8abc1f0ce10e30cab81b537353922f..6cc28720bbecf995aad6e80aae0109d34605d8b1 100644
--- a/content/browser/permissions/permission_service_impl.h
+++ b/content/browser/permissions/permission_service_impl.h
@@ -55,7 +55,7 @@ class PermissionServiceImpl : public blink::mojom::PermissionService {
RequestPermissionsCallback callback;
int request_count;
};
- using RequestsMap = IDMap<PendingRequest, IDMapOwnPointer>;
+ using RequestsMap = IDMap<std::unique_ptr<PendingRequest>>;
struct PendingSubscription {
PendingSubscription(PermissionType permission,
@@ -69,7 +69,7 @@ class PermissionServiceImpl : public blink::mojom::PermissionService {
url::Origin origin;
PermissionStatusCallback callback;
};
- using SubscriptionsMap = IDMap<PendingSubscription, IDMapOwnPointer>;
+ using SubscriptionsMap = IDMap<std::unique_ptr<PendingSubscription>>;
// blink::mojom::PermissionService.
void HasPermission(blink::mojom::PermissionDescriptorPtr permission,
« no previous file with comments | « content/browser/manifest/manifest_manager_host.h ('k') | content/browser/quota_dispatcher_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698