 Chromium Code Reviews
 Chromium Code Reviews Issue 13141002:
  Use Instant suggested match type for Instant temporary text.  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src
    
  
    Issue 13141002:
  Use Instant suggested match type for Instant temporary text.  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src| Index: chrome/browser/autocomplete/search_provider.h | 
| diff --git a/chrome/browser/autocomplete/search_provider.h b/chrome/browser/autocomplete/search_provider.h | 
| index 16f669f3bc095ccbc56d6f9629670011c1f3eece..2ea78f4a8a18d16063e61bee38240eb05c3c71fa 100644 | 
| --- a/chrome/browser/autocomplete/search_provider.h | 
| +++ b/chrome/browser/autocomplete/search_provider.h | 
| @@ -73,6 +73,17 @@ class SearchProvider : public AutocompleteProvider, | 
| const InstantSuggestion& suggestion); | 
| void ClearInstantSuggestion(); | 
| + // Sets |match| to be a search for |query|, using the default search provider | 
| + // or current keyword provider (based on |is_keyword|). |original_query| and | 
| + // |accepted_suggestion| are used to fill in AQS (Assisted Query Stats). | 
| + // Returns true if successful (i.e., the |match| was filled in correctly). | 
| + bool GetSearchWhatYouTypedMatch(const string16& query, | 
| 
Peter Kasting
2013/04/12 00:29:01
I wonder if this should be static.  Is it correct
 
sreeram
2013/04/12 22:36:18
The only new caller of this method is the one in o
 
Peter Kasting
2013/04/12 22:50:59
You do have to worry about pointers changing any t
 | 
| + const string16& original_query, | 
| + int relevance, | 
| + int accepted_suggestion, | 
| + bool is_keyword, | 
| + AutocompleteMatch* match); | 
| + | 
| // AutocompleteProvider: | 
| virtual void Start(const AutocompleteInput& input, | 
| bool minimal_changes) OVERRIDE; |