Overrides for weblayer's url bar not required anymore

Chromium change:
https://chromium.googlesource.com/chromium/src/+/1ce39b3caa70fb8f00e370461979e6d069898323

commit 1ce39b3caa70fb8f00e370461979e6d069898323
Author: Susanne Westphal <swestphal@google.com>
Date:   Wed Nov 2 16:39:29 2022 +0000

    [WebEngine] Remove UrlBarController from weblayer

    Bug: 1378606
This commit is contained in:
Claudio DeSouza
2022-12-15 14:18:51 -05:00
committed by Max Karolinskiy
parent b9147b8423
commit 0490e47ace
2 changed files with 0 additions and 29 deletions
@@ -1,11 +0,0 @@
/* Copyright (c) 2020 The Brave Authors. All rights reserved.
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "src/weblayer/browser/url_bar/page_info_delegate_impl.cc"
bool weblayer::PageInfoDelegateImpl::BraveShouldShowPermission(
ContentSettingsType type) {
return true;
}
@@ -1,18 +0,0 @@
/* Copyright (c) 2020 The Brave Authors. All rights reserved.
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef BRAVE_CHROMIUM_SRC_WEBLAYER_BROWSER_URL_BAR_PAGE_INFO_DELEGATE_IMPL_H_
#define BRAVE_CHROMIUM_SRC_WEBLAYER_BROWSER_URL_BAR_PAGE_INFO_DELEGATE_IMPL_H_
#include "components/page_info/page_info_delegate.h"
#define IsContentDisplayedInVrHeadset \
BraveShouldShowPermission(ContentSettingsType type) override; \
virtual bool IsContentDisplayedInVrHeadset
#include "src/weblayer/browser/url_bar/page_info_delegate_impl.h"
#undef IsContentDisplayedInVrHeadset
#endif // BRAVE_CHROMIUM_SRC_WEBLAYER_BROWSER_URL_BAR_PAGE_INFO_DELEGATE_IMPL_H_