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

Unified Diff: services/files/shared_impl.cc

Issue 1355403002: enum class fixups - testing non-zero (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
« no previous file with comments | « services/files/file_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/files/shared_impl.cc
diff --git a/services/files/shared_impl.cc b/services/files/shared_impl.cc
index 8584f82d108121c42c2499e916e5b29653137834..830eee3b952ec81c9fccb388854032987602c776 100644
--- a/services/files/shared_impl.cc
+++ b/services/files/shared_impl.cc
@@ -60,11 +60,14 @@ void TouchFD(int fd,
DCHECK_NE(fd, -1);
struct timespec times[2];
- if (Error error = TimespecOrNowToStandardTimespec(atime.get(), &times[0])) {
+ Error error = TimespecOrNowToStandardTimespec(atime.get(), &times[0]);
+ if (error != ERROR_OK) {
callback.Run(error);
return;
}
- if (Error error = TimespecOrNowToStandardTimespec(mtime.get(), &times[1])) {
+
+ error = TimespecOrNowToStandardTimespec(mtime.get(), &times[1]);
+ if (error != ERROR_OK) {
callback.Run(error);
return;
}
« no previous file with comments | « services/files/file_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698