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

Unified Diff: cc/resources/picture.cc

Issue 608503005: Revert of cc: Remove use of PassAs() and constructor-casting with scoped_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « cc/resources/image_layer_updater.cc ('k') | cc/resources/prioritized_resource_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture.cc
diff --git a/cc/resources/picture.cc b/cc/resources/picture.cc
index 6fa5abcabf203e4bfddcb99d3e72856155e98f3f..ec1f333f1f251f098e51c83107e1652cdd91721e 100644
--- a/cc/resources/picture.cc
+++ b/cc/resources/picture.cc
@@ -412,7 +412,7 @@
base::Base64Encode(std::string(serialized_picture.get(), serialized_size),
&b64_picture);
res->SetString("skp64", b64_picture);
- return res.Pass();
+ return res.PassAs<base::Value>();
}
void Picture::EmitTraceSnapshot() const {
« no previous file with comments | « cc/resources/image_layer_updater.cc ('k') | cc/resources/prioritized_resource_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698