Index: chrome/browser/autocomplete/autocomplete.cc |
=================================================================== |
--- chrome/browser/autocomplete/autocomplete.cc (revision 2179) |
+++ chrome/browser/autocomplete/autocomplete.cc (working copy) |
@@ -62,8 +62,7 @@ |
if (TrimWhitespace(text, TRIM_ALL, &text_) & TRIM_TRAILING) |
prevent_inline_autocomplete_ = true; |
- url_parse::Parsed parts; |
- type_ = Parse(text_, desired_tld, &parts, &scheme_); |
+ type_ = Parse(text_, desired_tld, &parts_, &scheme_); |
if (type_ == INVALID) |
return; |
@@ -243,6 +242,7 @@ |
void AutocompleteInput::Clear() { |
text_.clear(); |
type_ = INVALID; |
+ parts_ = url_parse::Parsed(); |
scheme_.clear(); |
desired_tld_.clear(); |
prevent_inline_autocomplete_ = false; |