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

Unified Diff: chrome/browser/autocomplete/autocomplete_provider.cc

Issue 55603002: Move HasHTTPScheme to AutocompleteInput. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 2 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
Index: chrome/browser/autocomplete/autocomplete_provider.cc
===================================================================
--- chrome/browser/autocomplete/autocomplete_provider.cc (revision 231939)
+++ chrome/browser/autocomplete/autocomplete_provider.cc (working copy)
@@ -16,7 +16,6 @@
#include "content/public/common/url_constants.h"
#include "net/base/net_util.h"
#include "url/gurl.h"
-#include "url/url_util.h"
// static
const size_t AutocompleteProvider::kMaxMatches = 3;
@@ -122,16 +121,6 @@
Stop(false);
}
-// static
-bool AutocompleteProvider::HasHTTPScheme(const string16& input) {
- std::string utf8_input(UTF16ToUTF8(input));
- url_parse::Component scheme;
- if (url_util::FindAndCompareScheme(utf8_input, content::kViewSourceScheme,
- &scheme))
- utf8_input.erase(0, scheme.end() + 1);
- return url_util::FindAndCompareScheme(utf8_input, content::kHttpScheme, NULL);
-}
-
void AutocompleteProvider::UpdateStarredStateOfMatches() {
if (matches_.empty())
return;
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_provider.h ('k') | chrome/browser/autocomplete/history_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698