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

Unified Diff: trunk/src/base/test/test_file_util_android.cc

Issue 65043023: Revert 235752 "Fix chrome upload with content uri" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 1 month 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: trunk/src/base/test/test_file_util_android.cc
===================================================================
--- trunk/src/base/test/test_file_util_android.cc (revision 235758)
+++ trunk/src/base/test/test_file_util_android.cc (working copy)
@@ -1,29 +0,0 @@
-// Copyright (c) 2011 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.
-
-#include "base/test/test_file_util.h"
-
-#include "base/android/jni_android.h"
-#include "base/android/jni_string.h"
-#include "base/files/file_path.h"
-#include "jni/ContentUriTestUtils_jni.h"
-
-namespace file_util {
-
-bool RegisterContentUriTestUtils(JNIEnv* env) {
- return RegisterNativesImpl(env);
-}
-
-base::FilePath InsertImageIntoMediaStore(const base::FilePath& path) {
- JNIEnv* env = base::android::AttachCurrentThread();
- ScopedJavaLocalRef<jstring> j_path =
- base::android::ConvertUTF8ToJavaString(env, path.value());
- ScopedJavaLocalRef<jstring> j_uri =
- Java_ContentUriTestUtils_insertImageIntoMediaStore(
- env, base::android::GetApplicationContext(), j_path.obj());
- std::string uri = base::android::ConvertJavaStringToUTF8(j_uri);
- return base::FilePath(uri);
-}
-
-} // namespace file_util
« no previous file with comments | « trunk/src/base/test/test_file_util.h ('k') | trunk/src/content/browser/child_process_security_policy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698