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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/init/ChromeBrowserInitializer.java

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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chrome.browser.init; 5 package org.chromium.chrome.browser.init;
6 6
7 import android.app.Activity; 7 import android.app.Activity;
8 import android.content.Context; 8 import android.content.Context;
9 import android.os.AsyncTask; 9 import android.os.AsyncTask;
10 import android.os.Build; 10 import android.os.Build;
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 mPreInflationStartupComplete = true; 201 mPreInflationStartupComplete = true;
202 } 202 }
203 203
204 private void postInflationStartup() { 204 private void postInflationStartup() {
205 ThreadUtils.assertOnUiThread(); 205 ThreadUtils.assertOnUiThread();
206 if (mPostInflationStartupComplete) return; 206 if (mPostInflationStartupComplete) return;
207 207
208 // Check to see if we need to extract any new resources from the APK. Th is could 208 // Check to see if we need to extract any new resources from the APK. Th is could
209 // be on first run when we need to extract all the .pak files we need, o r after 209 // be on first run when we need to extract all the .pak files we need, o r after
210 // the user has switched locale, in which case we want new locale resour ces. 210 // the user has switched locale, in which case we want new locale resour ces.
211 ResourceExtractor.get(mApplication).startExtractingResources(); 211 ResourceExtractor.get().startExtractingResources();
212 212
213 mPostInflationStartupComplete = true; 213 mPostInflationStartupComplete = true;
214 } 214 }
215 215
216 /** 216 /**
217 * Execute startup tasks that require native libraries to be loaded. See {@l ink BrowserParts} 217 * Execute startup tasks that require native libraries to be loaded. See {@l ink BrowserParts}
218 * for a list of calls to be implemented. 218 * for a list of calls to be implemented.
219 * @param isAsync Whether this call should synchronously wait for the browse r process to be 219 * @param isAsync Whether this call should synchronously wait for the browse r process to be
220 * fully initialized before returning to the caller. 220 * fully initialized before returning to the caller.
221 * @param delegate The delegate for the {@link ChromeBrowserInitializer} to communicate 221 * @param delegate The delegate for the {@link ChromeBrowserInitializer} to communicate
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 Log.e(TAG, "Killing process because of locale change."); 430 Log.e(TAG, "Killing process because of locale change.");
431 Process.killProcess(Process.myPid()); 431 Process.killProcess(Process.myPid());
432 } 432 }
433 433
434 DeviceFormFactor.resetValuesIfNeeded(mApplication); 434 DeviceFormFactor.resetValuesIfNeeded(mApplication);
435 } 435 }
436 } 436 }
437 }; 437 };
438 } 438 }
439 } 439 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698