| OLD | NEW |
| 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 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 | 393 |
| 394 PathService.override(PathService.DIR_MODULE, "/system/lib/"); | 394 PathService.override(PathService.DIR_MODULE, "/system/lib/"); |
| 395 PathService.override(DIR_RESOURCE_PAKS_ANDROID, "/system/framework/webvi
ew/paks"); | 395 PathService.override(DIR_RESOURCE_PAKS_ANDROID, "/system/framework/webvi
ew/paks"); |
| 396 | 396 |
| 397 // Make sure that ResourceProvider is initialized before starting the br
owser process. | 397 // Make sure that ResourceProvider is initialized before starting the br
owser process. |
| 398 final String webViewPackageName = WebViewFactory.getLoadedPackageInfo().
packageName; | 398 final String webViewPackageName = WebViewFactory.getLoadedPackageInfo().
packageName; |
| 399 Context context = ContextUtils.getApplicationContext(); | 399 Context context = ContextUtils.getApplicationContext(); |
| 400 setUpResources(webViewPackageName, context); | 400 setUpResources(webViewPackageName, context); |
| 401 initPlatSupportLibrary(); | 401 initPlatSupportLibrary(); |
| 402 initNetworkChangeNotifier(context); | 402 initNetworkChangeNotifier(context); |
| 403 AwBrowserProcess.configureChildProcessLauncher(webViewPackageName); | 403 final int extraBindFlags = Context.BIND_EXTERNAL_SERVICE; |
| 404 AwBrowserProcess.configureChildProcessLauncher(webViewPackageName, extra
BindFlags); |
| 404 AwBrowserProcess.start(); | 405 AwBrowserProcess.start(); |
| 405 | 406 |
| 406 if (isBuildDebuggable()) { | 407 if (isBuildDebuggable()) { |
| 407 setWebContentsDebuggingEnabled(true); | 408 setWebContentsDebuggingEnabled(true); |
| 408 } | 409 } |
| 409 | 410 |
| 410 TraceEvent.setATraceEnabled(mWebViewDelegate.isTraceTagEnabled()); | 411 TraceEvent.setATraceEnabled(mWebViewDelegate.isTraceTagEnabled()); |
| 411 mWebViewDelegate.setOnTraceEnabledChangeListener( | 412 mWebViewDelegate.setOnTraceEnabledChangeListener( |
| 412 new WebViewDelegate.OnTraceEnabledChangeListener() { | 413 new WebViewDelegate.OnTraceEnabledChangeListener() { |
| 413 @Override | 414 @Override |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 648 this, HttpAuthDatabase.newInstance(context, HTTP_AUTH_DA
TABASE_FILE)); | 649 this, HttpAuthDatabase.newInstance(context, HTTP_AUTH_DA
TABASE_FILE)); |
| 649 } | 650 } |
| 650 } | 651 } |
| 651 return mWebViewDatabase; | 652 return mWebViewDatabase; |
| 652 } | 653 } |
| 653 | 654 |
| 654 WebViewDelegate getWebViewDelegate() { | 655 WebViewDelegate getWebViewDelegate() { |
| 655 return mWebViewDelegate; | 656 return mWebViewDelegate; |
| 656 } | 657 } |
| 657 } | 658 } |
| OLD | NEW |