Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1766)

Unified Diff: android_webview/javatests/src/org/chromium/android_webview/test/NullContentsClient.java

Issue 11187032: Handle resubmission of HTTP Posts. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: call Reload in correct thread Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: android_webview/javatests/src/org/chromium/android_webview/test/NullContentsClient.java
diff --git a/android_webview/javatests/src/org/chromium/android_webview/test/NullContentsClient.java b/android_webview/javatests/src/org/chromium/android_webview/test/NullContentsClient.java
index 9c4bd5778bb729d6fc601a819e8f92ad5aad1ab1..46448d3aede3f6502bfef1c4624ff0cccfa5068b 100644
--- a/android_webview/javatests/src/org/chromium/android_webview/test/NullContentsClient.java
+++ b/android_webview/javatests/src/org/chromium/android_webview/test/NullContentsClient.java
@@ -5,6 +5,7 @@
package org.chromium.android_webview.test;
import android.content.Context;
+import android.os.Message;
import android.view.KeyEvent;
import android.webkit.ConsoleMessage;
@@ -80,4 +81,9 @@ class NullContentsClient extends AwContentsClient {
@Override
public void onReceivedError(int errorCode, String description, String failingUrl) {
}
+
+ @Override
+ public void onFormResubmission(Message dontResend, Message resend) {
+ dontResend.sendToTarget();
+ }
}

Powered by Google App Engine
This is Rietveld 408576698