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

Unified Diff: content/renderer/gpu/gpu_benchmarking_extension.cc

Issue 657763002: Use scoped_ptr::Pass instead of scoped_ptr::PassAs<T>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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: content/renderer/gpu/gpu_benchmarking_extension.cc
diff --git a/content/renderer/gpu/gpu_benchmarking_extension.cc b/content/renderer/gpu/gpu_benchmarking_extension.cc
index 4af1540bad8ec0a978bec0a2b19bad6d827f04f9..299f41e504e036184e7a576d1e7044bcf7a4ebb6 100644
--- a/content/renderer/gpu/gpu_benchmarking_extension.cc
+++ b/content/renderer/gpu/gpu_benchmarking_extension.cc
@@ -546,9 +546,8 @@ class GpuBenchmarkingWrapper : public v8::Extension {
// progress, we will leak the callback and context. This needs to be fixed,
// somehow.
context.render_view_impl()->QueueSyntheticGesture(
- gesture_params.PassAs<SyntheticGestureParams>(),
- base::Bind(&OnSyntheticGestureCompleted,
- callback_and_context));
+ gesture_params.Pass(),
+ base::Bind(&OnSyntheticGestureCompleted, callback_and_context));
args.GetReturnValue().Set(true);
}
@@ -640,9 +639,8 @@ class GpuBenchmarkingWrapper : public v8::Extension {
// progress, we will leak the callback and context. This needs to be fixed,
// somehow.
context.render_view_impl()->QueueSyntheticGesture(
- gesture_params.PassAs<SyntheticGestureParams>(),
- base::Bind(&OnSyntheticGestureCompleted,
- callback_and_context));
+ gesture_params.Pass(),
+ base::Bind(&OnSyntheticGestureCompleted, callback_and_context));
args.GetReturnValue().Set(true);
}
@@ -690,9 +688,8 @@ class GpuBenchmarkingWrapper : public v8::Extension {
// progress, we will leak the callback and context. This needs to be fixed,
// somehow.
context.render_view_impl()->QueueSyntheticGesture(
- gesture_params.PassAs<SyntheticGestureParams>(),
- base::Bind(&OnSyntheticGestureCompleted,
- callback_and_context));
+ gesture_params.Pass(),
+ base::Bind(&OnSyntheticGestureCompleted, callback_and_context));
args.GetReturnValue().Set(true);
}
@@ -748,9 +745,8 @@ class GpuBenchmarkingWrapper : public v8::Extension {
// progress, we will leak the callback and context. This needs to be fixed,
// somehow.
context.render_view_impl()->QueueSyntheticGesture(
- gesture_params.PassAs<SyntheticGestureParams>(),
- base::Bind(&OnSyntheticGestureCompleted,
- callback_and_context));
+ gesture_params.Pass(),
+ base::Bind(&OnSyntheticGestureCompleted, callback_and_context));
args.GetReturnValue().Set(true);
}
« no previous file with comments | « content/renderer/gpu/frame_swap_message_queue_unittest.cc ('k') | content/renderer/java/gin_java_bridge_value_converter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698