summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorGustav Sennton <gsennton@google.com>2015-06-19 13:23:45 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-06-19 13:23:52 +0000
commit1b48a6430ae503ff2826657ef0d1d4a090f7aa37 (patch)
tree6276791cf238e35a5688f7f4643eb5f4be49dce6 /services
parent50057943fbf36c84c220d47115e7cdd13fa01a4c (diff)
parentd9730182212b157083321ea4e2209182f1fbb72f (diff)
downloadframeworks_base-1b48a6430ae503ff2826657ef0d1d4a090f7aa37.zip
frameworks_base-1b48a6430ae503ff2826657ef0d1d4a090f7aa37.tar.gz
frameworks_base-1b48a6430ae503ff2826657ef0d1d4a090f7aa37.tar.bz2
Merge "Revert "Load WebView from one out of a list of packages."" into mnc-dev
Diffstat (limited to 'services')
-rw-r--r--services/core/java/com/android/server/webkit/WebViewUpdateService.java21
1 files changed, 3 insertions, 18 deletions
diff --git a/services/core/java/com/android/server/webkit/WebViewUpdateService.java b/services/core/java/com/android/server/webkit/WebViewUpdateService.java
index ac79b36..d4c5f87 100644
--- a/services/core/java/com/android/server/webkit/WebViewUpdateService.java
+++ b/services/core/java/com/android/server/webkit/WebViewUpdateService.java
@@ -40,8 +40,6 @@ public class WebViewUpdateService extends SystemService {
private boolean mRelroReady32Bit = false;
private boolean mRelroReady64Bit = false;
- private String oldWebViewPackageName = null;
-
private BroadcastReceiver mWebViewUpdatedReceiver;
public WebViewUpdateService(Context context) {
@@ -53,22 +51,9 @@ public class WebViewUpdateService extends SystemService {
mWebViewUpdatedReceiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
-
- for (String packageName : WebViewFactory.getWebViewPackageNames()) {
- String webviewPackage = "package:" + packageName;
-
- if (webviewPackage.equals(intent.getDataString())) {
- String usedPackageName =
- WebViewFactory.findPreferredWebViewPackage().packageName;
- // Only trigger update actions if the updated package is the one that
- // will be used, or the one that was in use before the update.
- if (packageName.equals(usedPackageName) ||
- packageName.equals(oldWebViewPackageName)) {
- onWebViewUpdateInstalled();
- oldWebViewPackageName = usedPackageName;
- }
- return;
- }
+ String webviewPackage = "package:" + WebViewFactory.getWebViewPackageName();
+ if (webviewPackage.equals(intent.getDataString())) {
+ onWebViewUpdateInstalled();
}
}
};