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

Unified Diff: components/filesystem/files_test_base.cc

Issue 1635603002: Make use of CreateInterfacePtrAndBind() where appropriate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweaks Created 4 years, 11 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: components/filesystem/files_test_base.cc
diff --git a/components/filesystem/files_test_base.cc b/components/filesystem/files_test_base.cc
index 6b73a377aa5b2ce9a84501e5d044d308f09c1b19..4bfd2b2c4494140e94560861873ad4406ccb68fb 100644
--- a/components/filesystem/files_test_base.cc
+++ b/components/filesystem/files_test_base.cc
@@ -28,11 +28,9 @@ void FilesTestBase::OnFileSystemShutdown() {
}
void FilesTestBase::GetTemporaryRoot(DirectoryPtr* directory) {
- filesystem::FileSystemClientPtr client;
- binding_.Bind(GetProxy(&client));
-
FileError error = FileError::FAILED;
- files()->OpenFileSystem("temp", GetProxy(directory), std::move(client),
+ files()->OpenFileSystem("temp", GetProxy(directory),
+ binding_.CreateInterfacePtrAndBind(),
mojo::Capture(&error));
ASSERT_TRUE(files().WaitForIncomingResponse());
ASSERT_EQ(FileError::OK, error);

Powered by Google App Engine
This is Rietveld 408576698