From fdbdeb3137a6b47527d1d714afbb7e1b19b474ec Mon Sep 17 00:00:00 2001 From: Derek Sollenberger Date: Thu, 12 Aug 2010 11:20:13 -0400 Subject: [PATCH] Fix invalid comment in WebSettings. The get/set for the pluginPath is leftover from the Gear's plugin and is no longer useful now that plugins are loaded from their own APK using the package manager. These methods were modified to be no-ops in froyo, but the documentation was never completed. Change-Id: I20f6593445d877a3dae9b9f51d5198a3509255d6 http://b/2811032 --- api/current.xml | 4 ++-- core/java/android/webkit/WebSettings.java | 12 ++++++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/api/current.xml b/api/current.xml index 1305bad4ea7fd..869294dd7b0de 100644 --- a/api/current.xml +++ b/api/current.xml @@ -203553,7 +203553,7 @@ synchronized="true" static="false" final="false" - deprecated="not deprecated" + deprecated="deprecated" visibility="public" > @@ -204101,7 +204101,7 @@ synchronized="true" static="false" final="false" - deprecated="not deprecated" + deprecated="deprecated" visibility="public" > diff --git a/core/java/android/webkit/WebSettings.java b/core/java/android/webkit/WebSettings.java index 1b801d4d13807..4e57a8ab911dc 100644 --- a/core/java/android/webkit/WebSettings.java +++ b/core/java/android/webkit/WebSettings.java @@ -1048,7 +1048,11 @@ public class WebSettings { } /** - * TODO: need to add @Deprecated + * Set a custom path to plugins used by the WebView. This method is + * obsolete since each plugin is now loaded from its own package. + * @param pluginsPath String path to the directory containing plugins. + * @deprecated This method is no longer used as plugins are loaded from + * their own APK via the system's package manager. */ public synchronized void setPluginsPath(String pluginsPath) { } @@ -1219,7 +1223,11 @@ public class WebSettings { } /** - * TODO: need to add @Deprecated + * Returns the directory that contains the plugin libraries. This method is + * obsolete since each plugin is now loaded from its own package. + * @return An empty string. + * @deprecated This method is no longer used as plugins are loaded from + * their own APK via the system's package manager. */ public synchronized String getPluginsPath() { return "";