diff options
| author | Marcin Kosiba <mkosiba@google.com> | 2014-08-05 11:00:49 +0100 |
|---|---|---|
| committer | Marcin Kosiba <mkosiba@google.com> | 2014-08-05 11:00:49 +0100 |
| commit | 3c4b2273accf835a407a1b689be69c74f2efc4db (patch) | |
| tree | 8a2c1533981a6a6df55be4d9681ffe11e1fa940c /core/java | |
| parent | a7e4fe9af0964a2377ebc1c3d5f47a6d38b593f7 (diff) | |
| download | frameworks_base-3c4b2273accf835a407a1b689be69c74f2efc4db.zip frameworks_base-3c4b2273accf835a407a1b689be69c74f2efc4db.tar.gz frameworks_base-3c4b2273accf835a407a1b689be69c74f2efc4db.tar.bz2 | |
Update WebViewFactory.java to compile in AOSP.
Change-Id: I076ef48a3205969f1945bff93ea0305e9907b20a
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/webkit/WebViewFactory.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/core/java/android/webkit/WebViewFactory.java b/core/java/android/webkit/WebViewFactory.java index 732518d..56849f3 100644 --- a/core/java/android/webkit/WebViewFactory.java +++ b/core/java/android/webkit/WebViewFactory.java @@ -66,6 +66,11 @@ public final class WebViewFactory { return false; // User has not modifed Developer Settings } + public static String getWebViewPackageName() { + // TODO: Make this dynamic based on resource configuration. + return "com.android.webview"; + } + static WebViewFactoryProvider getProvider() { synchronized (sProviderLock) { // For now the main purpose of this function (and the factory abstraction) is to keep @@ -103,8 +108,7 @@ public final class WebViewFactory { return (Class<WebViewFactoryProvider>) Class.forName(CHROMIUM_WEBVIEW_FACTORY, true, clazzLoader); } catch (PackageManager.NameNotFoundException e) { - Log.e(LOGTAG, "Chromium WebView package does not exist"); - return (Class<WebViewFactoryProvider>) Class.forName(NULL_WEBVIEW_FACTORY); + throw new ClassNotFoundException("Chromium WebView package does not exist", e); } } } |
