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

Unified Diff: mojo/services/files/public/c/lib/directory_wrapper.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, 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/public/c/lib/directory_wrapper.cc
diff --git a/mojo/services/files/public/c/lib/directory_wrapper.cc b/mojo/services/files/public/c/lib/directory_wrapper.cc
index d67615d3655e642434afbc51837f29c03b42bbea..986df54cc66a98885c50b1d8ee34252cccffd78e 100644
--- a/mojo/services/files/public/c/lib/directory_wrapper.cc
+++ b/mojo/services/files/public/c/lib/directory_wrapper.cc
@@ -71,7 +71,7 @@ std::unique_ptr<FDImpl> DirectoryWrapper::Open(const char* path,
// with it?
mojo::files::FilePtr file;
- mojo::files::Error error = mojo::files::ERROR_INTERNAL;
+ mojo::files::Error error = mojo::files::Error::INTERNAL;
directory_->OpenFile(path, mojo::GetProxy(&file), mojo_open_flags,
Capture(&error));
if (!directory_.WaitForIncomingResponse()) {
@@ -93,7 +93,7 @@ bool DirectoryWrapper::Chdir(const char* path) {
return errno_setter.Set(EFAULT);
mojo::files::DirectoryPtr new_directory;
- mojo::files::Error error = mojo::files::ERROR_INTERNAL;
+ mojo::files::Error error = mojo::files::Error::INTERNAL;
directory_->OpenDirectory(
path, mojo::GetProxy(&new_directory),
mojo::files::kOpenFlagRead | mojo::files::kOpenFlagWrite,
« no previous file with comments | « mojo/public/tools/bindings/generators/mojom_cpp_generator.py ('k') | mojo/services/files/public/c/lib/file_fd_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698