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

Unified Diff: ui/snapshot/snapshot_async.cc

Issue 496313004: Remove implicit conversions from scoped_refptr to T* in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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: ui/snapshot/snapshot_async.cc
diff --git a/ui/snapshot/snapshot_async.cc b/ui/snapshot/snapshot_async.cc
index 5f18225fcf431dc7a463525f58ed001f577002d2..cbb58cc085b6a7a9b72ee2bec3268d3d72000f38 100644
--- a/ui/snapshot/snapshot_async.cc
+++ b/ui/snapshot/snapshot_async.cc
@@ -74,7 +74,7 @@ void SnapshotAsync::ScaleCopyOutputResult(
// be used here because it's not in content/public. Move the scaling code
// somewhere so that it can be reused here.
base::PostTaskAndReplyWithResult(
- background_task_runner,
+ background_task_runner.get(),
FROM_HERE,
base::Bind(ScaleBitmap, *result->TakeBitmap(), target_size),
base::Bind(&OnFrameScalingFinished, callback));
@@ -94,7 +94,7 @@ void SnapshotAsync::EncodeCopyOutputResult(
// be used here because it's not in content/public. Move the scaling code
// somewhere so that it can be reused here.
base::PostTaskAndReplyWithResult(
- background_task_runner,
+ background_task_runner.get(),
FROM_HERE,
base::Bind(EncodeBitmap, *result->TakeBitmap()),
callback);
« ui/compositor/test/in_process_context_factory.cc ('K') | « ui/gl/gl_image_ref_counted_memory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698