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

Unified Diff: ui/base/resource/resource_bundle_android.h

Issue 1193613002: Convert Android WebView to store locale .pak files as res/raw resources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@no-extractor-init
Patch Set: rebase again Created 5 years, 6 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 | « ui/base/resource/resource_bundle.cc ('k') | ui/base/resource/resource_bundle_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/resource/resource_bundle_android.h
diff --git a/ui/base/resource/resource_bundle_android.h b/ui/base/resource/resource_bundle_android.h
index 213753e5684fbd6d2fbb841e51e2695e20de2839..17e1bd2e9256f24dc39b72e0f84f94abb2271492 100644
--- a/ui/base/resource/resource_bundle_android.h
+++ b/ui/base/resource/resource_bundle_android.h
@@ -28,8 +28,11 @@ UI_BASE_EXPORT int GetMainAndroidPackFd(
UI_BASE_EXPORT int GetCommonResourcesPackFd(
base::MemoryMappedFile::Region* out_region);
-// Checks whether the locale data pak is contained within the .apk.
-bool AssetContainedInApk(const std::string& filename);
+// Returns the path within the apk for the given locale's .pak file, or an
+// empty string if it doesn't exist.
+// Only locale paks for the active Android language can be retrieved.
+UI_BASE_EXPORT std::string GetPathForAndroidLocalePakWithinApk(
+ const std::string& locale);
bool RegisterResourceBundleAndroid(JNIEnv* env);
« no previous file with comments | « ui/base/resource/resource_bundle.cc ('k') | ui/base/resource/resource_bundle_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698