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

Unified Diff: chrome/browser/android/monochrome_entry_point.cc

Issue 2404253003: Reland #2 of Fix monochrome not booting issue (Closed)
Patch Set: Use ui::SetLocalePaksStoredInApk(true) in monochrome entry point 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/android/monochrome_entry_point.cc
diff --git a/chrome/browser/android/monochrome_entry_point.cc b/chrome/browser/android/monochrome_entry_point.cc
index d6658bebc7d1a5d80752b170874c81fb6ab1076d..270bd19ee192f78cc44365f25705126d7147761b 100644
--- a/chrome/browser/android/monochrome_entry_point.cc
+++ b/chrome/browser/android/monochrome_entry_point.cc
@@ -7,6 +7,7 @@
#include "base/android/library_loader/library_loader_hooks.h"
#include "base/bind.h"
#include "chrome/app/android/chrome_jni_onload.h"
+#include "ui/base/resource/resource_bundle_android.h"
namespace {
@@ -23,6 +24,7 @@ bool Init() {
// This is called by the VM when the shared library is first loaded.
JNI_EXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved) {
base::android::InitVM(vm);
+ ui::SetLocalePaksStoredInApk(true);
michaelbai 2016/10/11 21:27:44 I still prefer not to do this, because I want to m
agrieve 2016/10/12 02:27:25 Just to be clear - this is *not* the existing beha
Torne 2016/10/12 10:35:55 Oh, so monochrome is currently extracting the loca
michaelbai 2016/10/12 16:39:49 I understood you want both WebView and Chrome in m
JNIEnv* env = base::android::AttachCurrentThread();
bool ret;
int library_process_type = base::android::GetLibraryProcessType(env);

Powered by Google App Engine
This is Rietveld 408576698