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

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java

Issue 543553002: [Checkstyle] Enable additional name checks for Java. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 3 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/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java
diff --git a/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java b/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java
index 2caf6a98d8f43e23385d32e3a905c1ec4f7cf174..5aaa32f92c8c494b3e876ae48aaaa858e91fad2f 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java
@@ -139,8 +139,8 @@ class AwWebContentsDelegateAdapter extends AwWebContentsDelegate {
// TODO(mkosiba) We should be using something akin to the JsResultReceiver as the
// callback parameter (instead of ContentViewCore) and implement a way of converting
// that to a pair of messages.
- final int MSG_CONTINUE_PENDING_RELOAD = 1;
- final int MSG_CANCEL_PENDING_RELOAD = 2;
+ final int msgContinuePendingReload = 1;
+ final int msgCancelPendingReload = 2;
// TODO(sgurun) Remember the URL to cancel the reload behavior
// if it is different than the most recent NavigationController entry.
@@ -148,11 +148,11 @@ class AwWebContentsDelegateAdapter extends AwWebContentsDelegate {
@Override
public void handleMessage(Message msg) {
switch(msg.what) {
- case MSG_CONTINUE_PENDING_RELOAD: {
+ case msgContinuePendingReload: {
contentViewCore.continuePendingReload();
break;
}
- case MSG_CANCEL_PENDING_RELOAD: {
+ case msgCancelPendingReload: {
contentViewCore.cancelPendingReload();
break;
}
@@ -163,8 +163,8 @@ class AwWebContentsDelegateAdapter extends AwWebContentsDelegate {
}
};
- Message resend = handler.obtainMessage(MSG_CONTINUE_PENDING_RELOAD);
- Message dontResend = handler.obtainMessage(MSG_CANCEL_PENDING_RELOAD);
+ Message resend = handler.obtainMessage(msgContinuePendingReload);
+ Message dontResend = handler.obtainMessage(msgCancelPendingReload);
mContentsClient.onFormResubmission(dontResend, resend);
}

Powered by Google App Engine
This is Rietveld 408576698