Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Unified Diff: chrome/browser/autocomplete/url_prefix.h

Issue 184663002: Omnibox: Make URLs of Bookmarks Searchable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix ALL_MATCHES (in response to recent changes) Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/autocomplete/shortcuts_provider.cc ('k') | chrome/browser/autocomplete/url_prefix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/url_prefix.h
diff --git a/chrome/browser/autocomplete/url_prefix.h b/chrome/browser/autocomplete/url_prefix.h
index f5494cbfe78d4983340038801619b628b4759ec0..b7728b0f322bccb5201b2d7e5c66d687d6b0efcf 100644
--- a/chrome/browser/autocomplete/url_prefix.h
+++ b/chrome/browser/autocomplete/url_prefix.h
@@ -39,20 +39,19 @@ struct URLPrefix {
const base::string16& prefix_suffix);
// Sees if |text| is inlineable against either |input| or |fixed_up_input|,
- // filling in |match_start| and |inline_autocomplete_offset| appropriately.
+ // returning the appropriate inline autocomplete offset or
+ // base::string16::npos if |text| is not inlineable.
// |allow_www_prefix_without_scheme| says whether to consider an input such
// as "foo" to be allowed to match against text "www.foo.com". This is
// needed because sometimes the string we're matching against here can come
// from a match's fill_into_edit, which can start with "www." without having
// a protocol at the beginning, and we want to allow these matches to be
// inlineable. ("www." is not otherwise on the default prefix list.)
- static void ComputeMatchStartAndInlineAutocompleteOffset(
+ static size_t GetInlineAutocompleteOffset(
const AutocompleteInput& input,
const AutocompleteInput& fixed_up_input,
const bool allow_www_prefix_without_scheme,
- const base::string16& text,
- size_t* match_start,
- size_t* inline_autocomplete_offset);
+ const base::string16& text);
base::string16 prefix;
« no previous file with comments | « chrome/browser/autocomplete/shortcuts_provider.cc ('k') | chrome/browser/autocomplete/url_prefix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698