summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/views/website_settings/permissions_bubble_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/views/website_settings/permissions_bubble_view.cc')
-rw-r--r--chrome/browser/ui/views/website_settings/permissions_bubble_view.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/chrome/browser/ui/views/website_settings/permissions_bubble_view.cc b/chrome/browser/ui/views/website_settings/permissions_bubble_view.cc
index 8f27164..e885ebf 100644
--- a/chrome/browser/ui/views/website_settings/permissions_bubble_view.cc
+++ b/chrome/browser/ui/views/website_settings/permissions_bubble_view.cc
@@ -18,7 +18,7 @@
#include "chrome/browser/ui/website_settings/permission_bubble_request.h"
#include "chrome/common/pref_names.h"
#include "chrome/grit/generated_resources.h"
-#include "components/url_formatter/url_formatter.h"
+#include "net/base/net_util.h"
#include "ui/accessibility/ax_view_state.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/models/combobox_model.h"
@@ -216,11 +216,12 @@ PermissionsBubbleDelegateView::PermissionsBubbleDelegateView(
SetLayoutManager(new views::BoxLayout(
views::BoxLayout::kVertical, kBubbleOuterMargin, 0, kItemMajorSpacing));
- hostname_ = url_formatter::FormatUrl(
- requests[0]->GetRequestingHostname(), languages,
- url_formatter::kFormatUrlOmitUsernamePassword |
- url_formatter::kFormatUrlOmitTrailingSlashOnBareHostname,
- net::UnescapeRule::SPACES, nullptr, nullptr, nullptr);
+ hostname_ = net::FormatUrl(requests[0]->GetRequestingHostname(),
+ languages,
+ net::kFormatUrlOmitUsernamePassword |
+ net::kFormatUrlOmitTrailingSlashOnBareHostname,
+ net::UnescapeRule::SPACES,
+ nullptr, nullptr, nullptr);
ui::ResourceBundle& bundle = ui::ResourceBundle::GetSharedInstance();
for (size_t index = 0; index < requests.size(); index++) {