| Index: mojo/services/view_manager/public/cpp/lib/view.cc
|
| diff --git a/mojo/services/view_manager/public/cpp/lib/view.cc b/mojo/services/view_manager/public/cpp/lib/view.cc
|
| index f7e77844ce9cfbd191051b8594da239aa3b71cce..4a7007220e87f2f1385d6e31851af60b2863cc7d 100644
|
| --- a/mojo/services/view_manager/public/cpp/lib/view.cc
|
| +++ b/mojo/services/view_manager/public/cpp/lib/view.cc
|
| @@ -387,10 +387,13 @@ namespace {
|
| ViewportMetricsPtr CreateEmptyViewportMetrics() {
|
| ViewportMetricsPtr metrics = ViewportMetrics::New();
|
| metrics->size = Size::New();
|
| - return metrics;
|
| -}
|
| + // TODO(vtl): The |.Pass()| below is only needed due to an MSVS bug; remove it
|
| + // once that's fixed.
|
| + return metrics.Pass();
|
| }
|
|
|
| +} // namespace
|
| +
|
| View::View()
|
| : manager_(NULL),
|
| id_(static_cast<Id>(-1)),
|
|
|