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

Unified Diff: chrome/browser/chrome_browser_main_android.cc

Issue 2404253003: Reland #2 of Fix monochrome not booting issue (Closed)
Patch Set: Change default back to loading locales from disk Created 4 years, 2 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
Index: chrome/browser/chrome_browser_main_android.cc
diff --git a/chrome/browser/chrome_browser_main_android.cc b/chrome/browser/chrome_browser_main_android.cc
index dbb1287b135041a08702e99bcad0a6df5b2e89fe..b8f38116b8b29964720f25f3744d98285fe5f3ec 100644
--- a/chrome/browser/chrome_browser_main_android.cc
+++ b/chrome/browser/chrome_browser_main_android.cc
@@ -70,7 +70,10 @@ int ChromeBrowserMainPartsAndroid::PreCreateThreads() {
crash_dump_manager_.reset(new breakpad::CrashDumpManager(crash_dump_dir));
}
- ui::SetLocalePaksStoredInApk(false);
+ // Auto-detect based on en-US whether locale .pak files are store uncompressed
+ // (monochrome) vs extracted (non-monochrome).
+ ui::SetLocalePaksStoredInApk(
+ !ui::GetPathForAndroidLocalePakWithinApk("en-US").empty());
return ChromeBrowserMainParts::PreCreateThreads();
}

Powered by Google App Engine
This is Rietveld 408576698