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

Side by Side Diff: android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java

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 unified diff | Download patch
« no previous file with comments | « android_webview/BUILD.gn ('k') | android_webview/system_webview_apk_tmpl.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 com.android.webview.chromium; 5 package com.android.webview.chromium;
6 6
7 import android.Manifest; 7 import android.Manifest;
8 import android.app.ActivityManager; 8 import android.app.ActivityManager;
9 import android.content.ComponentCallbacks2; 9 import android.content.ComponentCallbacks2;
10 import android.content.Context; 10 import android.content.Context;
(...skipping 27 matching lines...) Expand all
38 import org.chromium.android_webview.AwContents; 38 import org.chromium.android_webview.AwContents;
39 import org.chromium.android_webview.AwContentsClient; 39 import org.chromium.android_webview.AwContentsClient;
40 import org.chromium.android_webview.AwContentsStatics; 40 import org.chromium.android_webview.AwContentsStatics;
41 import org.chromium.android_webview.AwCookieManager; 41 import org.chromium.android_webview.AwCookieManager;
42 import org.chromium.android_webview.AwDevToolsServer; 42 import org.chromium.android_webview.AwDevToolsServer;
43 import org.chromium.android_webview.AwNetworkChangeNotifierRegistrationPolicy; 43 import org.chromium.android_webview.AwNetworkChangeNotifierRegistrationPolicy;
44 import org.chromium.android_webview.AwQuotaManagerBridge; 44 import org.chromium.android_webview.AwQuotaManagerBridge;
45 import org.chromium.android_webview.AwResource; 45 import org.chromium.android_webview.AwResource;
46 import org.chromium.android_webview.AwSettings; 46 import org.chromium.android_webview.AwSettings;
47 import org.chromium.android_webview.HttpAuthDatabase; 47 import org.chromium.android_webview.HttpAuthDatabase;
48 import org.chromium.android_webview.R;
49 import org.chromium.android_webview.ResourcesContextWrapperFactory; 48 import org.chromium.android_webview.ResourcesContextWrapperFactory;
50 import org.chromium.base.BuildConfig; 49 import org.chromium.base.BuildConfig;
51 import org.chromium.base.CommandLine; 50 import org.chromium.base.CommandLine;
52 import org.chromium.base.ContextUtils; 51 import org.chromium.base.ContextUtils;
53 import org.chromium.base.MemoryPressureListener; 52 import org.chromium.base.MemoryPressureListener;
54 import org.chromium.base.PackageUtils; 53 import org.chromium.base.PackageUtils;
55 import org.chromium.base.PathService; 54 import org.chromium.base.PathService;
56 import org.chromium.base.PathUtils; 55 import org.chromium.base.PathUtils;
57 import org.chromium.base.ThreadUtils; 56 import org.chromium.base.ThreadUtils;
58 import org.chromium.base.TraceEvent; 57 import org.chromium.base.TraceEvent;
59 import org.chromium.base.annotations.SuppressFBWarnings; 58 import org.chromium.base.annotations.SuppressFBWarnings;
60 import org.chromium.base.library_loader.LibraryLoader; 59 import org.chromium.base.library_loader.LibraryLoader;
61 import org.chromium.base.library_loader.LibraryProcessType; 60 import org.chromium.base.library_loader.LibraryProcessType;
62 import org.chromium.base.library_loader.ProcessInitException; 61 import org.chromium.base.library_loader.ProcessInitException;
63 import org.chromium.content.browser.ContentViewStatics; 62 import org.chromium.content.browser.ContentViewStatics;
64 import org.chromium.net.NetworkChangeNotifier; 63 import org.chromium.net.NetworkChangeNotifier;
65 import org.chromium.ui.base.ResourceBundle;
66 64
67 import java.io.File; 65 import java.io.File;
68 import java.util.Queue; 66 import java.util.Queue;
69 import java.util.concurrent.Callable; 67 import java.util.concurrent.Callable;
70 import java.util.concurrent.ConcurrentLinkedQueue; 68 import java.util.concurrent.ConcurrentLinkedQueue;
71 import java.util.concurrent.FutureTask; 69 import java.util.concurrent.FutureTask;
72 import java.util.concurrent.TimeUnit; 70 import java.util.concurrent.TimeUnit;
73 71
74 /** 72 /**
75 * Entry point to the WebView. The system framework talks to this class to get i nstances of the 73 * Entry point to the WebView. The system framework talks to this class to get i nstances of the
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 throw new RuntimeException("Error initializing WebView library", e); 383 throw new RuntimeException("Error initializing WebView library", e);
386 } 384 }
387 385
388 PathService.override(PathService.DIR_MODULE, "/system/lib/"); 386 PathService.override(PathService.DIR_MODULE, "/system/lib/");
389 PathService.override(DIR_RESOURCE_PAKS_ANDROID, "/system/framework/webvi ew/paks"); 387 PathService.override(DIR_RESOURCE_PAKS_ANDROID, "/system/framework/webvi ew/paks");
390 388
391 // Make sure that ResourceProvider is initialized before starting the br owser process. 389 // Make sure that ResourceProvider is initialized before starting the br owser process.
392 final String webViewPackageName = WebViewFactory.getLoadedPackageInfo(). packageName; 390 final String webViewPackageName = WebViewFactory.getLoadedPackageInfo(). packageName;
393 Context context = ContextUtils.getApplicationContext(); 391 Context context = ContextUtils.getApplicationContext();
394 setUpResources(webViewPackageName, context); 392 setUpResources(webViewPackageName, context);
395 ResourceBundle.initializeLocalePaks(context, R.array.locale_paks);
396 initPlatSupportLibrary(); 393 initPlatSupportLibrary();
397 initNetworkChangeNotifier(context); 394 initNetworkChangeNotifier(context);
398 final int extraBindFlags = Context.BIND_EXTERNAL_SERVICE; 395 final int extraBindFlags = Context.BIND_EXTERNAL_SERVICE;
399 AwBrowserProcess.configureChildProcessLauncher(webViewPackageName, extra BindFlags); 396 AwBrowserProcess.configureChildProcessLauncher(webViewPackageName, extra BindFlags);
400 AwBrowserProcess.start(); 397 AwBrowserProcess.start();
401 398
402 if (isBuildDebuggable()) { 399 if (isBuildDebuggable()) {
403 setWebContentsDebuggingEnabled(true); 400 setWebContentsDebuggingEnabled(true);
404 } 401 }
405 402
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 this, HttpAuthDatabase.newInstance(context, HTTP_AUTH_DA TABASE_FILE)); 629 this, HttpAuthDatabase.newInstance(context, HTTP_AUTH_DA TABASE_FILE));
633 } 630 }
634 } 631 }
635 return mWebViewDatabase; 632 return mWebViewDatabase;
636 } 633 }
637 634
638 WebViewDelegate getWebViewDelegate() { 635 WebViewDelegate getWebViewDelegate() {
639 return mWebViewDelegate; 636 return mWebViewDelegate;
640 } 637 }
641 } 638 }
OLDNEW
« no previous file with comments | « android_webview/BUILD.gn ('k') | android_webview/system_webview_apk_tmpl.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698