Fix-favicons-fallback-search.patch
This commit is contained in:
parent
e228ddb4e4
commit
c56195bbd9
1 changed files with 3 additions and 3 deletions
|
@ -9,13 +9,13 @@ Subject: Fix favicons fallback search
|
|||
diff --git a/components/favicon/core/favicon_database.cc b/components/favicon/core/favicon_database.cc
|
||||
--- a/components/favicon/core/favicon_database.cc
|
||||
+++ b/components/favicon/core/favicon_database.cc
|
||||
@@ -782,7 +782,9 @@ base::Optional<GURL> FaviconDatabase::FindFirstPageURLForHost(
|
||||
@@ -790,7 +790,9 @@ base::Optional<GURL> FaviconDatabase::FindFirstPageURLForHost(
|
||||
|
||||
// Bind the host with a prefix of "://" and suffix of "/" to ensure the entire
|
||||
// host name is matched.
|
||||
- statement.BindString(0, base::StringPrintf("%%://%s/%%", url.host().c_str()));
|
||||
+ statement.BindString(0, base::StringPrintf("%s://%s/%%",
|
||||
+ std::string(url.scheme_piece()).c_str(),
|
||||
+ statement.BindString(0, base::StringPrintf("%s://%s/%%",
|
||||
+ std::string(url.scheme_piece()).c_str(),
|
||||
+ url.host().c_str()));
|
||||
|
||||
while (statement.Step()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue