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

Unified Diff: components/filesystem/public/cpp/prefs/filesystem_json_pref_store.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
« no previous file with comments | « components/filesystem/files_test_base.cc ('k') | components/web_view/frame_apptest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/filesystem/public/cpp/prefs/filesystem_json_pref_store.cc
diff --git a/components/filesystem/public/cpp/prefs/filesystem_json_pref_store.cc b/components/filesystem/public/cpp/prefs/filesystem_json_pref_store.cc
index ffb93b70079ea76be084d6d5bc83ce720fcdc3cf..8a13889bde8d409de6f04c55b5af5318443070fa 100644
--- a/components/filesystem/public/cpp/prefs/filesystem_json_pref_store.cc
+++ b/components/filesystem/public/cpp/prefs/filesystem_json_pref_store.cc
@@ -327,11 +327,8 @@ void FilesystemJsonPrefStore::PerformWrite() {
}
void FilesystemJsonPrefStore::OpenFilesystem(base::Closure callback) {
- filesystem::FileSystemClientPtr client;
- binding_.Bind(GetProxy(&client));
-
filesystem_->OpenFileSystem(
- "origin", GetProxy(&directory_), std::move(client),
+ "origin", GetProxy(&directory_), binding_.CreateInterfacePtrAndBind(),
base::Bind(&FilesystemJsonPrefStore::OnOpenFilesystem, AsWeakPtr(),
callback));
}
« no previous file with comments | « components/filesystem/files_test_base.cc ('k') | components/web_view/frame_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698