Commit 90957437 authored by pkasting@chromium.org's avatar pkasting@chromium.org

Fix clang build.


git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86744 0039d316-1c4b-4281-b951-d872f2087c98
parent e428f8e0
...@@ -61,13 +61,13 @@ void ExtensionAppProvider::Start(const AutocompleteInput& input, ...@@ -61,13 +61,13 @@ void ExtensionAppProvider::Start(const AutocompleteInput& input,
match.destination_url = GURL(url); match.destination_url = GURL(url);
match.inline_autocomplete_offset = string16::npos; match.inline_autocomplete_offset = string16::npos;
match.contents = name; match.contents = name;
AutocompleteMatch::ClassifyLocationInString( AutocompleteMatch::ClassifyLocationInString(matches_name ?
matches_name ? (name_iter - name.begin()) : string16::npos, static_cast<size_t>(name_iter - name.begin()) : string16::npos,
input.text().length(), name.length(), ACMatchClassification::NONE, input.text().length(), name.length(), ACMatchClassification::NONE,
&match.contents_class); &match.contents_class);
match.description = url; match.description = url;
AutocompleteMatch::ClassifyLocationInString( AutocompleteMatch::ClassifyLocationInString(matches_url ?
matches_url ? (url_iter - url.begin()) : string16::npos, static_cast<size_t>(url_iter - url.begin()) : string16::npos,
input.text().length(), url.length(), ACMatchClassification::URL, input.text().length(), url.length(), ACMatchClassification::URL,
&match.description_class); &match.description_class);
match.relevance = CalculateRelevance(input.type(), match.relevance = CalculateRelevance(input.type(),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment