Index: chrome/browser/autocomplete/autocomplete_input.h |
diff --git a/chrome/browser/autocomplete/autocomplete_input.h b/chrome/browser/autocomplete/autocomplete_input.h |
index b923e7b6542163ba51d00ce44c995eec3c0da602..46dbdd4ebd5dc95bfd439b7fadc16205e3332e8e 100644 |
--- a/chrome/browser/autocomplete/autocomplete_input.h |
+++ b/chrome/browser/autocomplete/autocomplete_input.h |
@@ -10,23 +10,14 @@ |
#include "base/basictypes.h" |
#include "base/gtest_prod_util.h" |
#include "base/strings/string16.h" |
+#include "components/metrics/proto/omnibox_input_type.pb.h" |
#include "url/gurl.h" |
#include "url/url_parse.h" |
// The user input for an autocomplete query. Allows copying. |
class AutocompleteInput { |
public: |
- // Note that the type below may be misleading. For example, "http:/" alone |
- // cannot be opened as a URL, so it is marked as a QUERY; yet the user |
- // probably intends to type more and have it eventually become a URL, so we |
- // need to make sure we still run it through inline autocomplete. |
- enum Type { |
- INVALID, // Empty input |
- UNKNOWN, // Valid input whose type cannot be determined |
- URL, // Input autodetected as a URL |
- QUERY, // Input autodetected as a query |
- FORCED_QUERY, // Input forced to be a query by an initial '?' |
- }; |
+ typedef metrics::OmniboxInputType::Type Type; |
// The type of page currently displayed. |
// Note: when adding an element to this enum, please add it at the end |