[Android] New signature for AutocompleteMediator#loadUrlForOmniboxMatch
Chromium change: https://source.chromium.org/chromium/chromium/src/+/5799acb4fd93d6b94dc5834f1887af52503b49d2 Remove unused `skipCheck` parameter from updateDestinationUrl call. 🫧 🫧🧽🧼🫧 🫧 Bug: 1490333
This commit is contained in:
+18
-5
@@ -18,8 +18,11 @@ import org.chromium.misc_metrics.mojom.MiscAndroidMetrics;
|
||||
import org.chromium.url.GURL;
|
||||
|
||||
class BraveAutocompleteMediatorBase {
|
||||
void loadUrlForOmniboxMatch(int matchIndex, @NonNull AutocompleteMatch suggestion,
|
||||
@NonNull GURL url, long inputStart, boolean inVisibleSuggestionList,
|
||||
void loadUrlForOmniboxMatch(
|
||||
int matchIndex,
|
||||
@NonNull AutocompleteMatch suggestion,
|
||||
@NonNull GURL url,
|
||||
long inputStart,
|
||||
boolean openInNewTab) {
|
||||
Context context =
|
||||
(Context)
|
||||
@@ -44,9 +47,19 @@ class BraveAutocompleteMediatorBase {
|
||||
}
|
||||
}
|
||||
|
||||
BraveReflectionUtil.InvokeMethod(AutocompleteMediator.class, this, "loadUrlForOmniboxMatch",
|
||||
int.class, matchIndex, AutocompleteMatch.class, suggestion, GURL.class, url,
|
||||
long.class, inputStart, boolean.class, inVisibleSuggestionList, boolean.class,
|
||||
BraveReflectionUtil.InvokeMethod(
|
||||
AutocompleteMediator.class,
|
||||
this,
|
||||
"loadUrlForOmniboxMatch",
|
||||
int.class,
|
||||
matchIndex,
|
||||
AutocompleteMatch.class,
|
||||
suggestion,
|
||||
GURL.class,
|
||||
url,
|
||||
long.class,
|
||||
inputStart,
|
||||
boolean.class,
|
||||
openInNewTab);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -562,14 +562,25 @@ public class BytecodeTest {
|
||||
true,
|
||||
boolean.class,
|
||||
Intent.class));
|
||||
Assert.assertTrue(methodExists(
|
||||
"org/chromium/chrome/browser/omnibox/suggestions/AutocompleteCoordinator",
|
||||
"createViewProvider", true, ViewProvider.class, Context.class,
|
||||
MVCListAdapter.ModelList.class));
|
||||
Assert.assertTrue(methodExists(
|
||||
"org/chromium/chrome/browser/omnibox/suggestions/AutocompleteMediator",
|
||||
"loadUrlForOmniboxMatch", true, void.class, int.class, AutocompleteMatch.class,
|
||||
GURL.class, long.class, boolean.class, boolean.class));
|
||||
Assert.assertTrue(
|
||||
methodExists(
|
||||
"org/chromium/chrome/browser/omnibox/suggestions/AutocompleteCoordinator",
|
||||
"createViewProvider",
|
||||
true,
|
||||
ViewProvider.class,
|
||||
Context.class,
|
||||
MVCListAdapter.ModelList.class));
|
||||
Assert.assertTrue(
|
||||
methodExists(
|
||||
"org/chromium/chrome/browser/omnibox/suggestions/AutocompleteMediator",
|
||||
"loadUrlForOmniboxMatch",
|
||||
true,
|
||||
void.class,
|
||||
int.class,
|
||||
AutocompleteMatch.class,
|
||||
GURL.class,
|
||||
long.class,
|
||||
boolean.class));
|
||||
|
||||
// Check for method type declaration changes here
|
||||
Assert.assertTrue(
|
||||
|
||||
Reference in New Issue
Block a user