Index: components/bookmarks/browser/bookmark_utils.cc |
diff --git a/components/bookmarks/browser/bookmark_utils.cc b/components/bookmarks/browser/bookmark_utils.cc |
index 6d60a4f882888152310581f742d4a52353db77df..a815d1c5c9141d0f99c53a18773239106a371218 100644 |
--- a/components/bookmarks/browser/bookmark_utils.cc |
+++ b/components/bookmarks/browser/bookmark_utils.cc |
@@ -25,7 +25,7 @@ |
#include "components/bookmarks/common/bookmark_pref_names.h" |
#include "components/pref_registry/pref_registry_syncable.h" |
#include "components/query_parser/query_parser.h" |
-#include "components/url_formatter/url_formatter.h" |
+#include "net/base/net_util.h" |
#include "ui/base/clipboard/clipboard.h" |
#include "ui/base/models/tree_node_iterator.h" |
#include "url/gurl.h" |
@@ -96,14 +96,13 @@ |
bool DoesBookmarkContainWords(const BookmarkNode* node, |
const std::vector<base::string16>& words, |
const std::string& languages) { |
- return DoesBookmarkTextContainWords(node->GetTitle(), words) || |
- DoesBookmarkTextContainWords(base::UTF8ToUTF16(node->url().spec()), |
- words) || |
- DoesBookmarkTextContainWords( |
- url_formatter::FormatUrl( |
- node->url(), languages, url_formatter::kFormatUrlOmitNothing, |
- net::UnescapeRule::NORMAL, NULL, NULL, NULL), |
- words); |
+ return |
+ DoesBookmarkTextContainWords(node->GetTitle(), words) || |
+ DoesBookmarkTextContainWords( |
+ base::UTF8ToUTF16(node->url().spec()), words) || |
+ DoesBookmarkTextContainWords(net::FormatUrl( |
+ node->url(), languages, net::kFormatUrlOmitNothing, |
+ net::UnescapeRule::NORMAL, NULL, NULL, NULL), words); |
} |
// This is used with a tree iterator to skip subtrees which are not visible. |
@@ -517,11 +516,11 @@ |
const std::string& languages, |
base::OffsetAdjuster::Adjustments* adjustments) { |
base::OffsetAdjuster::Adjustments tmp_adjustments; |
- return base::i18n::ToLower(url_formatter::FormatUrlWithAdjustments( |
+ return base::i18n::ToLower(net::FormatUrlWithAdjustments( |
GURL(TruncateUrl(gurl.spec())), languages, |
- url_formatter::kFormatUrlOmitUsernamePassword, |
- net::UnescapeRule::SPACES | net::UnescapeRule::URL_SPECIAL_CHARS, NULL, |
- NULL, adjustments ? adjustments : &tmp_adjustments)); |
+ net::kFormatUrlOmitUsernamePassword, |
+ net::UnescapeRule::SPACES | net::UnescapeRule::URL_SPECIAL_CHARS, |
+ NULL, NULL, adjustments ? adjustments : &tmp_adjustments)); |
} |
base::string16 CleanUpTitleForMatching(const base::string16& title) { |