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

Unified Diff: components/filesystem/public/cpp/prefs/filesystem_json_pref_store.cc

Issue 1637113003: Add simplistic screenlock application. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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 | « no previous file | mash/BUILD.gn » ('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 d80a34ffd77247491b3d22978952aebdd844a429..ffb93b70079ea76be084d6d5bc83ce720fcdc3cf 100644
--- a/components/filesystem/public/cpp/prefs/filesystem_json_pref_store.cc
+++ b/components/filesystem/public/cpp/prefs/filesystem_json_pref_store.cc
@@ -327,8 +327,11 @@ void FilesystemJsonPrefStore::PerformWrite() {
}
void FilesystemJsonPrefStore::OpenFilesystem(base::Closure callback) {
+ filesystem::FileSystemClientPtr client;
+ binding_.Bind(GetProxy(&client));
+
filesystem_->OpenFileSystem(
- "origin", GetProxy(&directory_), binding_.CreateInterfacePtrAndBind(),
+ "origin", GetProxy(&directory_), std::move(client),
base::Bind(&FilesystemJsonPrefStore::OnOpenFilesystem, AsWeakPtr(),
callback));
}
@@ -425,7 +428,6 @@ void FilesystemJsonPrefStore::OnPreferencesFileRead(
read_only_ = true;
break;
}
- case FileError::FAILED:
case FileError::NOT_FOUND: {
// If the file just doesn't exist, maybe this is the first run. Just
// don't pass a value.
« no previous file with comments | « no previous file | mash/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698