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

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

Issue 2406093002: Fix monochrome not booting issue (Closed)
Patch Set: 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 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;
48 import org.chromium.android_webview.ResourcesContextWrapperFactory; 49 import org.chromium.android_webview.ResourcesContextWrapperFactory;
49 import org.chromium.base.BuildConfig; 50 import org.chromium.base.BuildConfig;
50 import org.chromium.base.CommandLine; 51 import org.chromium.base.CommandLine;
51 import org.chromium.base.ContextUtils; 52 import org.chromium.base.ContextUtils;
52 import org.chromium.base.MemoryPressureListener; 53 import org.chromium.base.MemoryPressureListener;
53 import org.chromium.base.PackageUtils; 54 import org.chromium.base.PackageUtils;
54 import org.chromium.base.PathService; 55 import org.chromium.base.PathService;
55 import org.chromium.base.PathUtils; 56 import org.chromium.base.PathUtils;
56 import org.chromium.base.ThreadUtils; 57 import org.chromium.base.ThreadUtils;
57 import org.chromium.base.TraceEvent; 58 import org.chromium.base.TraceEvent;
58 import org.chromium.base.annotations.SuppressFBWarnings; 59 import org.chromium.base.annotations.SuppressFBWarnings;
59 import org.chromium.base.library_loader.LibraryLoader; 60 import org.chromium.base.library_loader.LibraryLoader;
60 import org.chromium.base.library_loader.LibraryProcessType; 61 import org.chromium.base.library_loader.LibraryProcessType;
61 import org.chromium.base.library_loader.ProcessInitException; 62 import org.chromium.base.library_loader.ProcessInitException;
62 import org.chromium.content.browser.ContentViewStatics; 63 import org.chromium.content.browser.ContentViewStatics;
63 import org.chromium.net.NetworkChangeNotifier; 64 import org.chromium.net.NetworkChangeNotifier;
65 import org.chromium.ui.base.ResourceBundle;
64 66
65 import java.io.File; 67 import java.io.File;
66 import java.util.Queue; 68 import java.util.Queue;
67 import java.util.concurrent.Callable; 69 import java.util.concurrent.Callable;
68 import java.util.concurrent.ConcurrentLinkedQueue; 70 import java.util.concurrent.ConcurrentLinkedQueue;
69 import java.util.concurrent.FutureTask; 71 import java.util.concurrent.FutureTask;
70 import java.util.concurrent.TimeUnit; 72 import java.util.concurrent.TimeUnit;
71 73
72 /** 74 /**
73 * Entry point to the WebView. The system framework talks to this class to get i nstances of the 75 * 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
383 throw new RuntimeException("Error initializing WebView library", e); 385 throw new RuntimeException("Error initializing WebView library", e);
384 } 386 }
385 387
386 PathService.override(PathService.DIR_MODULE, "/system/lib/"); 388 PathService.override(PathService.DIR_MODULE, "/system/lib/");
387 PathService.override(DIR_RESOURCE_PAKS_ANDROID, "/system/framework/webvi ew/paks"); 389 PathService.override(DIR_RESOURCE_PAKS_ANDROID, "/system/framework/webvi ew/paks");
388 390
389 // Make sure that ResourceProvider is initialized before starting the br owser process. 391 // Make sure that ResourceProvider is initialized before starting the br owser process.
390 final String webViewPackageName = WebViewFactory.getLoadedPackageInfo(). packageName; 392 final String webViewPackageName = WebViewFactory.getLoadedPackageInfo(). packageName;
391 Context context = ContextUtils.getApplicationContext(); 393 Context context = ContextUtils.getApplicationContext();
392 setUpResources(webViewPackageName, context); 394 setUpResources(webViewPackageName, context);
395 ResourceBundle.initializeLocalePaks(context, R.array.locale_paks);
393 initPlatSupportLibrary(); 396 initPlatSupportLibrary();
394 initNetworkChangeNotifier(context); 397 initNetworkChangeNotifier(context);
395 final int extraBindFlags = Context.BIND_EXTERNAL_SERVICE; 398 final int extraBindFlags = Context.BIND_EXTERNAL_SERVICE;
396 AwBrowserProcess.configureChildProcessLauncher(webViewPackageName, extra BindFlags); 399 AwBrowserProcess.configureChildProcessLauncher(webViewPackageName, extra BindFlags);
397 AwBrowserProcess.start(); 400 AwBrowserProcess.start();
398 401
399 if (isBuildDebuggable()) { 402 if (isBuildDebuggable()) {
400 setWebContentsDebuggingEnabled(true); 403 setWebContentsDebuggingEnabled(true);
401 } 404 }
402 405
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 this, HttpAuthDatabase.newInstance(context, HTTP_AUTH_DA TABASE_FILE)); 632 this, HttpAuthDatabase.newInstance(context, HTTP_AUTH_DA TABASE_FILE));
630 } 633 }
631 } 634 }
632 return mWebViewDatabase; 635 return mWebViewDatabase;
633 } 636 }
634 637
635 WebViewDelegate getWebViewDelegate() { 638 WebViewDelegate getWebViewDelegate() {
636 return mWebViewDelegate; 639 return mWebViewDelegate;
637 } 640 }
638 } 641 }
OLDNEW
« no previous file with comments | « android_webview/BUILD.gn ('k') | android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698