Commit 1e5495c5 authored by Nate Fischer's avatar Nate Fischer Committed by Commit Bot

Android: fix incorrect parameter name comments

No change to behavior.

There were a few method calls in content layer where a comment is used
to indicate the parameter name, but the comment's param name doesn't
match the real parameter name. This CL changes the comment to match the
parameter name.

This is another errorprone compile warning.

Test: ninja system_webview_apk (warnings go away)
Change-Id: I6080a30f6656a1e6d2221521fbb9c11a250e8376
Reviewed-on: https://chromium-review.googlesource.com/777551Reviewed-by: default avatarBo <boliu@chromium.org>
Commit-Queue: Nate Fischer <ntfschr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#517651}
parent 2800f69a
...@@ -159,7 +159,7 @@ public class SelectionPopupController extends ActionModeCallbackHelper { ...@@ -159,7 +159,7 @@ public class SelectionPopupController extends ActionModeCallbackHelper {
*/ */
public SelectionPopupController( public SelectionPopupController(
Context context, WindowAndroid window, WebContents webContents, View view) { Context context, WindowAndroid window, WebContents webContents, View view) {
this(context, window, webContents, view, /* initialNative = */ true); this(context, window, webContents, view, /* initializeNative = */ true);
} }
/** /**
...@@ -173,7 +173,7 @@ public class SelectionPopupController extends ActionModeCallbackHelper { ...@@ -173,7 +173,7 @@ public class SelectionPopupController extends ActionModeCallbackHelper {
public static SelectionPopupController createForTesting( public static SelectionPopupController createForTesting(
Context context, WindowAndroid window, WebContents webContents, View view) { Context context, WindowAndroid window, WebContents webContents, View view) {
return new SelectionPopupController( return new SelectionPopupController(
context, window, webContents, view, /* initialNative = */ false); context, window, webContents, view, /* initializeNative = */ false);
} }
private SelectionPopupController(Context context, WindowAndroid window, WebContents webContents, private SelectionPopupController(Context context, WindowAndroid window, WebContents webContents,
...@@ -1265,7 +1265,7 @@ public class SelectionPopupController extends ActionModeCallbackHelper { ...@@ -1265,7 +1265,7 @@ public class SelectionPopupController extends ActionModeCallbackHelper {
if (!(result.startAdjust == 0 && result.endAdjust == 0)) { if (!(result.startAdjust == 0 && result.endAdjust == 0)) {
// This call will cause showSelectionMenu again. // This call will cause showSelectionMenu again.
mWebContents.adjustSelectionByCharacterOffset( mWebContents.adjustSelectionByCharacterOffset(
result.startAdjust, result.endAdjust, /* show_selection_menu = */ true); result.startAdjust, result.endAdjust, /* showSelectionMenu = */ true);
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment