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

Unified Diff: services/files/futimens_android.cc

Issue 875643004: Prototype of Files service. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: already ignored EINTR Created 5 years, 10 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/futimens.h ('k') | services/files/main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/files/futimens_android.cc
diff --git a/sky/shell/gpu_delegate.cc b/services/files/futimens_android.cc
similarity index 50%
copy from sky/shell/gpu_delegate.cc
copy to services/files/futimens_android.cc
index 62fe84c40bc9274136ef867093f5f6a7e872588f..035f61db33b114614177791a19407caa902ae6fe 100644
--- a/sky/shell/gpu_delegate.cc
+++ b/services/files/futimens_android.cc
@@ -2,13 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "sky/shell/gpu_delegate.h"
+#include "services/files/futimens.h"
-namespace sky {
-namespace shell {
+extern "C" {
-GPUDelegate::~GPUDelegate() {
+int futimens(int fd, const struct timespec times[2]) {
+ return utimensat(fd, nullptr, times, 0);
}
-} // namespace shell
-} // namespace sky
+} // extern "C"
« no previous file with comments | « services/files/futimens.h ('k') | services/files/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698