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

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

Issue 2815403002: WebView: Refactor PlatformServiceBridge.getInstance() (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | android_webview/java/src/org/chromium/android_webview/PlatformServiceBridge.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java
diff --git a/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java b/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java
index 0f3ab07cf519291bc114f589f4ff973deb0a6e9e..490a83f3e8f3d5181c63e9b30a5d83588f5149a3 100644
--- a/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java
+++ b/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java
@@ -401,13 +401,10 @@ public class WebViewChromiumFactoryProvider implements WebViewFactoryProvider {
PathService.override(PathService.DIR_MODULE, "/system/lib/");
PathService.override(DIR_RESOURCE_PAKS_ANDROID, "/system/framework/webview/paks");
- final Context context = ContextUtils.getApplicationContext();
- // Future calls to PlatformServiceBridge.getInstance() rely on it having been created here.
- PlatformServiceBridge.getOrCreateInstance();
-
// Make sure that ResourceProvider is initialized before starting the browser process.
final PackageInfo webViewPackageInfo = WebViewFactory.getLoadedPackageInfo();
final String webViewPackageName = webViewPackageInfo.packageName;
+ final Context context = ContextUtils.getApplicationContext();
setUpResources(webViewPackageInfo, context);
initPlatSupportLibrary();
doNetworkInitializations(context);
« no previous file with comments | « no previous file | android_webview/java/src/org/chromium/android_webview/PlatformServiceBridge.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698