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

Unified Diff: content/app/content_main_runner.cc

Issue 2241753002: [Android] Fix icu_use_data_file = false. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unused variable 'g_fds' Created 4 years, 4 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 | « no previous file | content/browser/child_process_launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/app/content_main_runner.cc
diff --git a/content/app/content_main_runner.cc b/content/app/content_main_runner.cc
index be41018283c54f7889451190990c4ef6ca0f2e7e..01bb5f00f42ce6a9499708f7a53c5766054c62fc 100644
--- a/content/app/content_main_runner.cc
+++ b/content/app/content_main_runner.cc
@@ -471,6 +471,7 @@ class ContentMainRunnerImpl : public ContentMainRunner {
#endif // OS_ANDROID
base::GlobalDescriptors* g_fds = base::GlobalDescriptors::GetInstance();
+ ALLOW_UNUSED_LOCAL(g_fds);
jungshik at Google 2016/08/19 23:10:48 I wonder if it'd be better to enclose |base::Glo..
Eden Wang 2016/08/20 00:41:42 I think it would be a very long statement to enclo
jungshik at Google 2016/08/22 20:02:00 I don't think you need that long condition. The sh
// On Android,
// - setlocale() is not supported.
@@ -678,7 +679,7 @@ class ContentMainRunnerImpl : public ContentMainRunner {
RegisterPathProvider();
RegisterContentSchemes(true);
-#if defined(OS_ANDROID)
+#if defined(OS_ANDROID) && (ICU_UTIL_DATA_IMPL == ICU_UTIL_DATA_FILE)
int icudata_fd = g_fds->MaybeGet(kAndroidICUDataDescriptor);
if (icudata_fd != -1) {
auto icudata_region = g_fds->GetRegion(kAndroidICUDataDescriptor);
@@ -689,7 +690,7 @@ class ContentMainRunnerImpl : public ContentMainRunner {
}
#else
CHECK(base::i18n::InitializeICU());
-#endif // OS_ANDROID
+#endif // OS_ANDROID && (ICU_UTIL_DATA_IMPL == ICU_UTIL_DATA_FILE)
base::StatisticsRecorder::Initialize();
« no previous file with comments | « no previous file | content/browser/child_process_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698