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

Unified Diff: components/resource_provider/resource_provider_impl.cc

Issue 1429263005: Revert of mandoline: Fix ICU initialization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « components/resource_provider/resource_provider_impl.h ('k') | mandoline/app/desktop/launcher_process.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/resource_provider/resource_provider_impl.cc
diff --git a/components/resource_provider/resource_provider_impl.cc b/components/resource_provider/resource_provider_impl.cc
index 628c16a8041c141064510b218a1c7c7fee34c456..3f14e7670a47621715f4ec6d17f246c22460e6e9 100644
--- a/components/resource_provider/resource_provider_impl.cc
+++ b/components/resource_provider/resource_provider_impl.cc
@@ -16,6 +16,8 @@
namespace resource_provider {
namespace {
+
+const char kResourceIcudtl[] = "icudtl.dat";
ScopedHandle GetHandleForPath(const base::FilePath& path) {
if (path.empty())
@@ -66,4 +68,12 @@
callback.Run(handles.Pass());
}
+void ResourceProviderImpl::GetICUHandle(const GetICUHandleCallback& callback) {
+ const base::FilePath resource_app_path(
+ GetPathForApplicationUrl(resource_provider_app_url_));
+ mojo::ScopedHandle handle = GetHandleForPath(
+ GetPathForResourceNamed(resource_app_path, kResourceIcudtl));
+ callback.Run(handle.Pass());
+}
+
} // namespace resource_provider
« no previous file with comments | « components/resource_provider/resource_provider_impl.h ('k') | mandoline/app/desktop/launcher_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698