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

Unified Diff: base/ios/ios_util.h

Issue 1568363002: [iOS] Allow overriding icuctl.dat file location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Less string copies Created 4 years, 11 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 | « base/i18n/icu_util.cc ('k') | base/ios/ios_util.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/ios/ios_util.h
diff --git a/base/ios/ios_util.h b/base/ios/ios_util.h
index e677adc755635f455349c032bb3647ea0f9d6974..3b276ff79981736345605077f8727b85a99a07c1 100644
--- a/base/ios/ios_util.h
+++ b/base/ios/ios_util.h
@@ -8,6 +8,7 @@
#include <stdint.h>
#include "base/base_export.h"
+#include "base/files/file_path.h"
namespace base {
namespace ios {
@@ -30,6 +31,14 @@ BASE_EXPORT bool IsRunningOnOrLater(int32_t major,
// example by using the "RTL Psuedolanguage" option when launching from XCode).
BASE_EXPORT bool IsInForcedRTL();
+// Stores the |path| of the ICU dat file in a global to be referenced later by
+// FilePathOfICUFile(). This should only be called once.
+BASE_EXPORT void OverridePathOfEmbeddedICU(const char* path);
+
+// Returns the overriden path set by OverridePathOfEmbeddedICU(), otherwise
+// returns invalid FilePath.
+BASE_EXPORT FilePath FilePathOfEmbeddedICU();
+
} // namespace ios
} // namespace base
« no previous file with comments | « base/i18n/icu_util.cc ('k') | base/ios/ios_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698