summaryrefslogtreecommitdiffstats
path: root/android_webview
diff options
context:
space:
mode:
authorjoth@chromium.org <joth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-31 02:27:11 +0000
committerjoth@chromium.org <joth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-31 02:27:11 +0000
commitba77e904411897040df472a8f86f3396decbc6b3 (patch)
tree038331e0f0196d714089ed5753368d61b40cb2a4 /android_webview
parente3cab678cc8946b60fbba819943d7316c06bec58 (diff)
downloadchromium_src-ba77e904411897040df472a8f86f3396decbc6b3.zip
chromium_src-ba77e904411897040df472a8f86f3396decbc6b3.tar.gz
chromium_src-ba77e904411897040df472a8f86f3396decbc6b3.tar.bz2
Remove Deprecated methods / tags
findAllSync() is no longer used. Deprecation happens at the public API so repeating in the implementation class doesn't have much effect besides generating warnings in test code. ../android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java:235:warning: [deprecation] getPluginsEnabled() in org.chromium.android_webview.AwSettings has been deprecated return mAwSettings.getPluginsEnabled(); BUG= Review URL: https://chromiumcodereview.appspot.com/16231015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203315 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'android_webview')
-rw-r--r--android_webview/java/src/org/chromium/android_webview/AwContents.java8
-rw-r--r--android_webview/java/src/org/chromium/android_webview/AwSettings.java2
-rw-r--r--android_webview/javatests/src/org/chromium/android_webview/test/WebViewFindApisTestBase.java17
3 files changed, 0 insertions, 27 deletions
diff --git a/android_webview/java/src/org/chromium/android_webview/AwContents.java b/android_webview/java/src/org/chromium/android_webview/AwContents.java
index 9a08314..b3be1b8 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwContents.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java
@@ -503,14 +503,6 @@ public class AwContents {
nativeEnableOnNewPicture(mNativeAwContents, enabled);
}
- // This is no longer synchronous and just calls the Async version and return 0.
- // TODO(boliu): Remove this method.
- @Deprecated
- public int findAllSync(String searchString) {
- findAllAsync(searchString);
- return 0;
- }
-
public void findAllAsync(String searchString) {
if (mNativeAwContents == 0) return;
nativeFindAllAsync(mNativeAwContents, searchString);
diff --git a/android_webview/java/src/org/chromium/android_webview/AwSettings.java b/android_webview/java/src/org/chromium/android_webview/AwSettings.java
index a578116..2be4d46 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwSettings.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwSettings.java
@@ -898,7 +898,6 @@ public class AwSettings {
/**
* See {@link android.webkit.WebSettings#setPluginsEnabled}.
*/
- @Deprecated
public void setPluginsEnabled(boolean flag) {
setPluginState(flag ? PluginState.ON : PluginState.OFF);
}
@@ -918,7 +917,6 @@ public class AwSettings {
/**
* See {@link android.webkit.WebSettings#getPluginsEnabled}.
*/
- @Deprecated
public boolean getPluginsEnabled() {
synchronized (mAwSettingsLock) {
return mPluginState == PluginState.ON;
diff --git a/android_webview/javatests/src/org/chromium/android_webview/test/WebViewFindApisTestBase.java b/android_webview/javatests/src/org/chromium/android_webview/test/WebViewFindApisTestBase.java
index 1de80ed..3333d72 100644
--- a/android_webview/javatests/src/org/chromium/android_webview/test/WebViewFindApisTestBase.java
+++ b/android_webview/javatests/src/org/chromium/android_webview/test/WebViewFindApisTestBase.java
@@ -62,23 +62,6 @@ public class WebViewFindApisTestBase extends AwTestBase {
}
/**
- * Invokes findAllSync on the UI thread and returns the number of matches.
- *
- * @param searchString A string to search for.
- * @return The number of instances of the string that were found.
- * @throws Throwable
- */
- protected int findAllSyncOnUiThread(final String searchString)
- throws Throwable {
- return runTestOnUiThreadAndGetResult(new Callable<Integer>() {
- @Override
- public Integer call() {
- return mContents.findAllSync(searchString);
- }
- });
- }
-
- /**
* Invokes findAllAsync on the UI thread, blocks until find results are
* received, and returns the number of matches.
*