Keep native autocomplete_match_types in sync with java.
Auto-generates the enum values for java autocomplete types. (Gets rid
of java enum overhead as a bonus).
Removes OPEN_HISTORY_PAGE suggestion type which looks like dead
code.
Replaces some switch statements with isUrlSuggestion, which seems to have
identical logic.
BUG=373520
Review URL: https://codereview.chromium.org/1413773006
Cr-Commit-Position: refs/heads/master@{#357515}
diff --git a/components/omnibox.gypi b/components/omnibox.gypi
index de4558e..8b2841d 100644
--- a/components/omnibox.gypi
+++ b/components/omnibox.gypi
@@ -189,4 +189,19 @@
],
},
],
+ 'conditions': [
+ ['OS == "android"', {
+ 'targets': [
+ {
+ # GN: //components/omnibox:autocomplete_match_type_javagen
+ 'target_name': 'autocomplete_match_type_java',
+ 'type': 'none',
+ 'variables': {
+ 'source_file': 'omnibox/browser/autocomplete_match_type.h',
+ },
+ 'includes': [ '../build/android/java_cpp_enum.gypi' ],
+ },
+ ],
+ }],
+ ],
}