diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2023-04-14 15:24:54 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2023-05-26 11:29:55 +0000 |
commit | ab965b1c2c3e7e4cd62a4b45abfaf393f4fb4618 (patch) | |
tree | 906ba4a71162c3ebcae0b742dbe01076af2abb22 /chromium/chrome/browser/ui/webui/explore_sites_internals/explore_sites_internals_ui.cc | |
parent | 813d9ae984a99e739b99cf694a9d5b24d0a6b7a7 (diff) |
BASELINE: Update Chromium to 112.0.5615.132
Change-Id: I59e23789618066826010171a36efbf8a68965ed0
Reviewed-on: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/472282
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/chrome/browser/ui/webui/explore_sites_internals/explore_sites_internals_ui.cc')
-rw-r--r-- | chromium/chrome/browser/ui/webui/explore_sites_internals/explore_sites_internals_ui.cc | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/chromium/chrome/browser/ui/webui/explore_sites_internals/explore_sites_internals_ui.cc b/chromium/chrome/browser/ui/webui/explore_sites_internals/explore_sites_internals_ui.cc deleted file mode 100644 index b5f0200d639..00000000000 --- a/chromium/chrome/browser/ui/webui/explore_sites_internals/explore_sites_internals_ui.cc +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2018 The Chromium Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#include "chrome/browser/ui/webui/explore_sites_internals/explore_sites_internals_ui.h" - -#include "base/bind.h" -#include "build/build_config.h" -#include "chrome/browser/android/explore_sites/explore_sites_service_factory.h" -#include "chrome/browser/flags/android/chrome_feature_list.h" -#include "chrome/browser/profiles/profile.h" -#include "chrome/browser/ui/webui/explore_sites_internals/explore_sites_internals.mojom.h" -#include "chrome/browser/ui/webui/explore_sites_internals/explore_sites_internals_page_handler.h" -#include "chrome/common/url_constants.h" -#include "chrome/grit/browser_resources.h" -#include "content/public/browser/web_ui_data_source.h" -#include "mojo/public/cpp/bindings/pending_receiver.h" - -namespace explore_sites { - -ExploreSitesInternalsUI::ExploreSitesInternalsUI(content::WebUI* web_ui) - : ui::MojoWebUIController(web_ui) { - content::WebUIDataSource* source = content::WebUIDataSource::Create( - chrome::kChromeUIExploreSitesInternalsHost); - - source->AddResourcePath("explore_sites_internals.css", - IDR_EXPLORE_SITES_INTERNALS_CSS); - source->AddResourcePath("explore_sites_internals.js", - IDR_EXPLORE_SITES_INTERNALS_JS); - source->AddResourcePath("explore_sites_internals.mojom-webui.js", - IDR_EXPLORE_SITES_INTERNALS_MOJO_JS); - source->SetDefaultResource(IDR_EXPLORE_SITES_INTERNALS_HTML); - - Profile* profile = Profile::FromWebUI(web_ui); - explore_sites_service_ = - ExploreSitesServiceFactory::GetForBrowserContext(profile); - content::WebUIDataSource::Add(profile, source); -} - -WEB_UI_CONTROLLER_TYPE_IMPL(ExploreSitesInternalsUI) - -ExploreSitesInternalsUI::~ExploreSitesInternalsUI() {} - -void ExploreSitesInternalsUI::BindInterface( - mojo::PendingReceiver<explore_sites_internals::mojom::PageHandler> - receiver) { - page_handler_ = std::make_unique<ExploreSitesInternalsPageHandler>( - std::move(receiver), explore_sites_service_, - Profile::FromWebUI(web_ui())); -} - -} // namespace explore_sites |