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

Unified Diff: content/child/permissions/permission_dispatcher.cc

Issue 1544293002: Convert Pass()→std::move() in //content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/child/navigator_connect/service_port_provider.cc ('k') | content/child/process_control_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/permissions/permission_dispatcher.cc
diff --git a/content/child/permissions/permission_dispatcher.cc b/content/child/permissions/permission_dispatcher.cc
index b30129cba7691cab3015c025002318e66437a3c7..2efb9a61c8db69db882467719024771d457bb148 100644
--- a/content/child/permissions/permission_dispatcher.cc
+++ b/content/child/permissions/permission_dispatcher.cc
@@ -5,6 +5,7 @@
#include "content/child/permissions/permission_dispatcher.h"
#include <stddef.h>
+#include <utility>
#include "base/callback.h"
#include "content/public/child/worker_thread.h"
@@ -296,13 +297,10 @@ void PermissionDispatcher::RequestPermissionsInternal(
names[i] = GetPermissionName(types[i]);
GetPermissionServicePtr()->RequestPermissions(
- names.Pass(),
- origin,
+ std::move(names), origin,
blink::WebUserGestureIndicator::isProcessingUserGesture(),
base::Bind(&PermissionDispatcher::OnRequestPermissionsResponse,
- base::Unretained(this),
- worker_thread_id,
- callback_key));
+ base::Unretained(this), worker_thread_id, callback_key));
}
void PermissionDispatcher::RevokePermissionInternal(
« no previous file with comments | « content/child/navigator_connect/service_port_provider.cc ('k') | content/child/process_control_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698