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

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: moar comments 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
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"

Powered by Google App Engine
This is Rietveld 408576698