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

Unified Diff: services/files/files_impl.cc

Issue 1375313006: For c++, Generate enum classes instead of enum from mojom. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 3 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: services/files/files_impl.cc
diff --git a/services/files/files_impl.cc b/services/files/files_impl.cc
index 111eaac5fdb98037b1368bd944a0886a6c674149..bfe151b0cba791e315e3c92a4bc7271fe7d0da59 100644
--- a/services/files/files_impl.cc
+++ b/services/files/files_impl.cc
@@ -79,17 +79,17 @@ void FilesImpl::OpenFileSystem(const mojo::String& file_system,
#endif
if (!dir_fd.is_valid()) {
LOG(ERROR) << "~/MojoDebug unavailable";
- callback.Run(ERROR_UNAVAILABLE);
+ callback.Run(Error::UNAVAILABLE);
return;
}
} else {
LOG(ERROR) << "Unknown file system: " << file_system.get();
- callback.Run(ERROR_UNIMPLEMENTED);
+ callback.Run(Error::UNIMPLEMENTED);
return;
}
new DirectoryImpl(directory.Pass(), dir_fd.Pass(), temp_dir.Pass());
- callback.Run(ERROR_OK);
+ callback.Run(Error::OK);
}
} // namespace files

Powered by Google App Engine
This is Rietveld 408576698