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

Unified Diff: base/android/java/src/org/chromium/base/ImportantFileWriterAndroid.java

Issue 1647803004: Move base to DEPS (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 11 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: base/android/java/src/org/chromium/base/ImportantFileWriterAndroid.java
diff --git a/base/android/java/src/org/chromium/base/ImportantFileWriterAndroid.java b/base/android/java/src/org/chromium/base/ImportantFileWriterAndroid.java
deleted file mode 100644
index 3921cea1a8cdb12ba39f2801f73d772f979066ed..0000000000000000000000000000000000000000
--- a/base/android/java/src/org/chromium/base/ImportantFileWriterAndroid.java
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package org.chromium.base;
-
-/**
- * This class provides an interface to the native class for writing
- * important data files without risking data loss.
- */
-@JNINamespace("base::android")
-public class ImportantFileWriterAndroid {
-
- /**
- * Write a binary file atomically.
- *
- * This either writes all the data or leaves the file unchanged.
- *
- * @param fileName The complete path of the file to be written
- * @param data The data to be written to the file
- * @return true if the data was written to the file, false if not.
- */
- public static boolean writeFileAtomically(String fileName, byte[] data) {
- return nativeWriteFileAtomically(fileName, data);
- }
-
- private static native boolean nativeWriteFileAtomically(
- String fileName, byte[] data);
-}

Powered by Google App Engine
This is Rietveld 408576698