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

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

Issue 1187433006: Load language .pak files directly from the apk when using splits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@locale-res-or-file
Patch Set: Fix ui_base_unittest failure (allow locale paks to be loaded multiple times) 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 437c473b424b69b00f79b8069b47ec62e8cf00e9..a9d3b1d1c564eb87c34b6b634760cfbc4c7b6cfc 100644
--- a/ui/base/resource/resource_bundle_android.h
+++ b/ui/base/resource/resource_bundle_android.h
@@ -24,10 +24,14 @@ UI_BASE_EXPORT void LoadMainAndroidPackFile(
UI_BASE_EXPORT int GetMainAndroidPackFd(
base::MemoryMappedFile::Region* out_region);
-// Returns the file descriptor and region for chrome_100_percent.pak
+// Returns the file descriptor and region for chrome_100_percent.pak.
UI_BASE_EXPORT int GetCommonResourcesPackFd(
base::MemoryMappedFile::Region* out_region);
+// Returns the file descriptor and region for the locale .pak file.
+UI_BASE_EXPORT int GetLocalePackFd(
+ base::MemoryMappedFile::Region* out_region);
+
// Tell ResourceBundle to locate locale pak files via
// GetPathForAndroidLocalePakWithinApk rather than looking for them on disk.
UI_BASE_EXPORT void SetLocalePaksStoredInApk(bool value);
« 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