diff options
author | dcheng <dcheng@chromium.org> | 2015-12-18 09:48:00 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-18 17:48:52 +0000 |
commit | e59eca16010c109a5e3e4922189c8b264d34caa9 (patch) | |
tree | 838815399c6364a99a465938df9978aeaf75c766 /extensions/renderer/guest_view | |
parent | 5100baf1eac806abbdaaf8002887aacf652f34e5 (diff) | |
download | chromium_src-e59eca16010c109a5e3e4922189c8b264d34caa9.zip chromium_src-e59eca16010c109a5e3e4922189c8b264d34caa9.tar.gz chromium_src-e59eca16010c109a5e3e4922189c8b264d34caa9.tar.bz2 |
Convert Pass()→std::move() in //extensions
BUG=557422
Review URL: https://codereview.chromium.org/1537893002
Cr-Commit-Position: refs/heads/master@{#366120}
Diffstat (limited to 'extensions/renderer/guest_view')
-rw-r--r-- | extensions/renderer/guest_view/guest_view_internal_custom_bindings.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/extensions/renderer/guest_view/guest_view_internal_custom_bindings.cc b/extensions/renderer/guest_view/guest_view_internal_custom_bindings.cc index ee243bf..f54c878 100644 --- a/extensions/renderer/guest_view/guest_view_internal_custom_bindings.cc +++ b/extensions/renderer/guest_view/guest_view_internal_custom_bindings.cc @@ -152,7 +152,7 @@ void GuestViewInternalCustomBindings::AttachGuest( scoped_ptr<V8ValueConverter> converter(V8ValueConverter::create()); scoped_ptr<base::Value> params_as_value( converter->FromV8Value(args[2], context()->v8_context())); - params = base::DictionaryValue::From(params_as_value.Pass()); + params = base::DictionaryValue::From(std::move(params_as_value)); CHECK(params); } @@ -162,7 +162,7 @@ void GuestViewInternalCustomBindings::AttachGuest( linked_ptr<guest_view::GuestViewRequest> request( new guest_view::GuestViewAttachRequest( - guest_view_container, guest_instance_id, params.Pass(), + guest_view_container, guest_instance_id, std::move(params), args.Length() == 4 ? args[3].As<v8::Function>() : v8::Local<v8::Function>(), args.GetIsolate())); @@ -226,7 +226,7 @@ void GuestViewInternalCustomBindings::AttachIframeGuest( scoped_ptr<V8ValueConverter> converter(V8ValueConverter::create()); scoped_ptr<base::Value> params_as_value( converter->FromV8Value(args[2], context()->v8_context())); - params = base::DictionaryValue::From(params_as_value.Pass()); + params = base::DictionaryValue::From(std::move(params_as_value)); CHECK(params); } @@ -261,9 +261,9 @@ void GuestViewInternalCustomBindings::AttachIframeGuest( linked_ptr<guest_view::GuestViewRequest> request( new guest_view::GuestViewAttachIframeRequest( guest_view_container, render_frame->GetRoutingID(), guest_instance_id, - params.Pass(), args.Length() == (num_required_params + 1) - ? args[num_required_params].As<v8::Function>() - : v8::Local<v8::Function>(), + std::move(params), args.Length() == (num_required_params + 1) + ? args[num_required_params].As<v8::Function>() + : v8::Local<v8::Function>(), args.GetIsolate())); guest_view_container->IssueRequest(request); |