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

Unified Diff: mojo/services/files/c/tests/test_utils.cc

Issue 1408793006: Convert "return local_var.Pass();" to "return local_var;". (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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: mojo/services/files/c/tests/test_utils.cc
diff --git a/mojo/services/files/c/tests/test_utils.cc b/mojo/services/files/c/tests/test_utils.cc
index 518186f9322174ad9398f0970e4dce4551f542e9..908c7dd4ef673b85ec1ead997d408a94a36c18e2 100644
--- a/mojo/services/files/c/tests/test_utils.cc
+++ b/mojo/services/files/c/tests/test_utils.cc
@@ -40,7 +40,7 @@ mojo::files::FilePtr OpenFileAt(mojo::files::DirectoryPtr* root,
if (error != mojo::files::Error::OK)
return nullptr;
- return file.Pass();
+ return file;
}
void CreateTestFileAt(mojo::files::DirectoryPtr* root,

Powered by Google App Engine
This is Rietveld 408576698