Index: mojo/public/cpp/bindings/tests/type_conversion_unittest.cc |
diff --git a/mojo/public/cpp/bindings/tests/type_conversion_unittest.cc b/mojo/public/cpp/bindings/tests/type_conversion_unittest.cc |
index 4a1e4a95eee28f21ef47431830d69b36377c6167..38e3abbf2d03b03cb8bc5391eb57709fe147c821 100644 |
--- a/mojo/public/cpp/bindings/tests/type_conversion_unittest.cc |
+++ b/mojo/public/cpp/bindings/tests/type_conversion_unittest.cc |
@@ -49,7 +49,7 @@ struct TypeConverter<test::RectPtr, RedmondRect> { |
rect->y = input.top; |
rect->width = input.right - input.left; |
rect->height = input.bottom - input.top; |
- return rect.Pass(); |
+ return rect; |
} |
}; |
@@ -71,7 +71,7 @@ struct TypeConverter<test::NamedRegionPtr, RedmondNamedRegion> { |
test::NamedRegionPtr region(test::NamedRegion::New()); |
region->name = input.name; |
region->rects = Array<test::RectPtr>::From(input.rects); |
- return region.Pass(); |
+ return region; |
} |
}; |