Chromium Code Reviews| Index: chrome/browser/autocomplete/autocomplete_match.h |
| diff --git a/chrome/browser/autocomplete/autocomplete_match.h b/chrome/browser/autocomplete/autocomplete_match.h |
| index a587df440bb2556731ed51f36b09a33b515253c5..c79e5908154aee46e297d6aa7d0528d470a087b8 100644 |
| --- a/chrome/browser/autocomplete/autocomplete_match.h |
| +++ b/chrome/browser/autocomplete/autocomplete_match.h |
| @@ -188,7 +188,10 @@ struct AutocompleteMatch { |
| // remove likely duplicates; these URLs are not used as actual |
| // destination URLs. This method is invoked internally by the |
| // AutocompleteResult and does not normally need to be invoked. |
| - void ComputeStrippedDestinationURL(); |
| + // If |profile| is not NULL, it is used to get a template URL corresponding |
| + // to this match. The template is used to strip off time/position sensitive |
| + // data that would otherwise prevent from proper dedupping. |
|
Peter Kasting
2012/10/26 22:13:49
Nit: dedupping -> deduping (and in other files)
I
Bart N.
2012/10/26 23:36:55
Done.
|
| + void ComputeStrippedDestinationURL(Profile* profile); |
| // Gets data relevant to whether there should be any special keyword-related |
| // UI shown for this match. If this match represents a selected keyword, i.e. |
| @@ -217,8 +220,13 @@ struct AutocompleteMatch { |
| // Returns the TemplateURL associated with this match. This may be NULL if |
| // the match has no keyword OR if the keyword no longer corresponds to a valid |
| // TemplateURL. See comments on |keyword| below. |
| + // Simply delegates to GetTemplateURL(profile, false) below. |
|
Peter Kasting
2012/10/26 22:13:49
Nit: Having two functions here is just another way
Bart N.
2012/10/26 23:36:55
Done.
|
| TemplateURL* GetTemplateURL(Profile* profile) const; |
| + // Same as above except it may peform additional template lookup using |
| + // |destination_url|'s host if |check_host| is true. |
|
Peter Kasting
2012/10/26 22:13:49
Nit: Be more clear. Something like "If |use_host|
Bart N.
2012/10/26 23:36:55
Done.
|
| + TemplateURL* GetTemplateURL(Profile* profile, bool use_host) const; |
| + |
| // Adds optional information to the |additional_info| dictionary. |
| void RecordAdditionalInfo(const std::string& property, |
| const std::string& value); |