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

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

Issue 2371843002: Reland of Move language pak files to assets. (Closed)
Patch Set: Fix ContentShell context setPrivateDataPrefix that was breaking tests 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 30 matching lines...) Expand all
41 import org.chromium.android_webview.AwContentsStatics; 41 import org.chromium.android_webview.AwContentsStatics;
42 import org.chromium.android_webview.AwCookieManager; 42 import org.chromium.android_webview.AwCookieManager;
43 import org.chromium.android_webview.AwDevToolsServer; 43 import org.chromium.android_webview.AwDevToolsServer;
44 import org.chromium.android_webview.AwGeolocationPermissions; 44 import org.chromium.android_webview.AwGeolocationPermissions;
45 import org.chromium.android_webview.AwNetworkChangeNotifierRegistrationPolicy; 45 import org.chromium.android_webview.AwNetworkChangeNotifierRegistrationPolicy;
46 import org.chromium.android_webview.AwQuotaManagerBridge; 46 import org.chromium.android_webview.AwQuotaManagerBridge;
47 import org.chromium.android_webview.AwResource; 47 import org.chromium.android_webview.AwResource;
48 import org.chromium.android_webview.AwServiceWorkerController; 48 import org.chromium.android_webview.AwServiceWorkerController;
49 import org.chromium.android_webview.AwSettings; 49 import org.chromium.android_webview.AwSettings;
50 import org.chromium.android_webview.HttpAuthDatabase; 50 import org.chromium.android_webview.HttpAuthDatabase;
51 import org.chromium.android_webview.R;
52 import org.chromium.android_webview.ResourcesContextWrapperFactory; 51 import org.chromium.android_webview.ResourcesContextWrapperFactory;
53 import org.chromium.base.BuildConfig; 52 import org.chromium.base.BuildConfig;
54 import org.chromium.base.CommandLine; 53 import org.chromium.base.CommandLine;
55 import org.chromium.base.ContextUtils; 54 import org.chromium.base.ContextUtils;
56 import org.chromium.base.MemoryPressureListener; 55 import org.chromium.base.MemoryPressureListener;
57 import org.chromium.base.PathService; 56 import org.chromium.base.PathService;
58 import org.chromium.base.PathUtils; 57 import org.chromium.base.PathUtils;
59 import org.chromium.base.ThreadUtils; 58 import org.chromium.base.ThreadUtils;
60 import org.chromium.base.TraceEvent; 59 import org.chromium.base.TraceEvent;
61 import org.chromium.base.annotations.SuppressFBWarnings; 60 import org.chromium.base.annotations.SuppressFBWarnings;
62 import org.chromium.base.library_loader.LibraryLoader; 61 import org.chromium.base.library_loader.LibraryLoader;
63 import org.chromium.base.library_loader.LibraryProcessType; 62 import org.chromium.base.library_loader.LibraryProcessType;
64 import org.chromium.base.library_loader.ProcessInitException; 63 import org.chromium.base.library_loader.ProcessInitException;
65 import org.chromium.content.browser.ContentViewStatics; 64 import org.chromium.content.browser.ContentViewStatics;
66 import org.chromium.net.NetworkChangeNotifier; 65 import org.chromium.net.NetworkChangeNotifier;
67 import org.chromium.ui.base.ResourceBundle;
68 66
69 import java.io.File; 67 import java.io.File;
70 import java.util.Queue; 68 import java.util.Queue;
71 import java.util.concurrent.Callable; 69 import java.util.concurrent.Callable;
72 import java.util.concurrent.ConcurrentLinkedQueue; 70 import java.util.concurrent.ConcurrentLinkedQueue;
73 import java.util.concurrent.FutureTask; 71 import java.util.concurrent.FutureTask;
74 import java.util.concurrent.TimeUnit; 72 import java.util.concurrent.TimeUnit;
75 73
76 /** 74 /**
77 * 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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 throw new RuntimeException("Error initializing WebView library", e); 384 throw new RuntimeException("Error initializing WebView library", e);
387 } 385 }
388 386
389 PathService.override(PathService.DIR_MODULE, "/system/lib/"); 387 PathService.override(PathService.DIR_MODULE, "/system/lib/");
390 PathService.override(DIR_RESOURCE_PAKS_ANDROID, "/system/framework/webvi ew/paks"); 388 PathService.override(DIR_RESOURCE_PAKS_ANDROID, "/system/framework/webvi ew/paks");
391 389
392 // Make sure that ResourceProvider is initialized before starting the br owser process. 390 // Make sure that ResourceProvider is initialized before starting the br owser process.
393 final String webViewPackageName = WebViewFactory.getLoadedPackageInfo(). packageName; 391 final String webViewPackageName = WebViewFactory.getLoadedPackageInfo(). packageName;
394 Context context = ContextUtils.getApplicationContext(); 392 Context context = ContextUtils.getApplicationContext();
395 setUpResources(webViewPackageName, context); 393 setUpResources(webViewPackageName, context);
396 ResourceBundle.initializeLocalePaks(context, R.array.locale_paks);
397 initPlatSupportLibrary(); 394 initPlatSupportLibrary();
398 initNetworkChangeNotifier(context); 395 initNetworkChangeNotifier(context);
399 final int extraBindFlags = Context.BIND_EXTERNAL_SERVICE; 396 final int extraBindFlags = Context.BIND_EXTERNAL_SERVICE;
400 AwBrowserProcess.configureChildProcessLauncher(webViewPackageName, extra BindFlags); 397 AwBrowserProcess.configureChildProcessLauncher(webViewPackageName, extra BindFlags);
401 AwBrowserProcess.start(); 398 AwBrowserProcess.start();
402 399
403 if (isBuildDebuggable()) { 400 if (isBuildDebuggable()) {
404 setWebContentsDebuggingEnabled(true); 401 setWebContentsDebuggingEnabled(true);
405 } 402 }
406 403
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 mWebViewDatabase = new WebViewDatabaseAdapter(this, awDatabase); 651 mWebViewDatabase = new WebViewDatabaseAdapter(this, awDatabase);
655 } 652 }
656 } 653 }
657 return mWebViewDatabase; 654 return mWebViewDatabase;
658 } 655 }
659 656
660 WebViewDelegate getWebViewDelegate() { 657 WebViewDelegate getWebViewDelegate() {
661 return mWebViewDelegate; 658 return mWebViewDelegate;
662 } 659 }
663 } 660 }
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