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

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

Issue 23964011: Reuse webview classic cookies file (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor fix Created 7 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 | « android_webview/browser/aw_browser_context.cc ('k') | base/android/path_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/java/src/org/chromium/base/PathUtils.java
diff --git a/base/android/java/src/org/chromium/base/PathUtils.java b/base/android/java/src/org/chromium/base/PathUtils.java
index aee5c050c34414aa8f7c82210dc3c95c59bffd01..e8a89e790545c0bea4f1654f3f273a2a26041b27 100644
--- a/base/android/java/src/org/chromium/base/PathUtils.java
+++ b/base/android/java/src/org/chromium/base/PathUtils.java
@@ -56,6 +56,15 @@ public abstract class PathUtils {
}
/**
+ * @return the private directory that is used to store application database.
+ */
+ @CalledByNative
+ public static String getDatabaseDirectory(Context appContext) {
+ // Context.getDatabasePath() returns path for the provided filename.
+ return appContext.getDatabasePath("foo").getParent();
+ }
+
+ /**
* @return the cache directory.
*/
@SuppressWarnings("unused")
« no previous file with comments | « android_webview/browser/aw_browser_context.cc ('k') | base/android/path_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698