Files
brave-core/patches/chrome-browser-ui-page_actions-page_action_controller.cc.patch
T
Claudio DeSouza ed61653f89 [cr149] Page Actions sources moved around
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/4f093f4239eb2814f57bc97ee593d7acd717ac42

commit 4f093f4239eb2814f57bc97ee593d7acd717ac42
Author: Kaan Alsan <alsan@chromium.org>
Date:   Thu Apr 30 13:03:09 2026 -0700

    Relocate Page Actions core logic to chrome/browser/ui/page_actions

    Bypass-Check-License: Moving files
    Change-Id: I4af05df48a60854e20119bd40f2df4b3870cd86c
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7801005
    Reviewed-by: Eshwar Stalin <estalin@chromium.org>
    Commit-Queue: Kaan Alsan <alsan@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1623365}
2026-05-22 16:57:40 -04:00

30 lines
1.4 KiB
Diff

diff --git a/chrome/browser/ui/page_actions/page_action_controller.cc b/chrome/browser/ui/page_actions/page_action_controller.cc
index 918af888a0a531c87989f73d7bd3b2a30c0d5f35..2472f9a1bbdcb9649bb907bd118ef616fe5755fe 100644
--- a/chrome/browser/ui/page_actions/page_action_controller.cc
+++ b/chrome/browser/ui/page_actions/page_action_controller.cc
@@ -69,6 +69,7 @@ void ScopedPageActionActivity::RegisterWillDestroyControllerCallback() {
}
}
+namespace chromium_impl {
PageActionControllerImpl::PageActionControllerImpl(
PinnedToolbarActionsModel* pinned_actions_model,
PageActionModelFactory* page_action_model_factory,
@@ -452,7 +453,7 @@ std::unique_ptr<PageActionModelInterface> PageActionControllerImpl::CreateModel(
if (page_action_model_factory_ != nullptr) {
return page_action_model_factory_->Create(action_id, is_ephemeral);
} else {
- return std::make_unique<PageActionModel>(action_id, is_ephemeral);
+ return std::make_unique<::page_actions::PageActionModel>(action_id, is_ephemeral);
}
}
@@ -522,6 +523,7 @@ void PageActionControllerImpl::OnIsChipShowingChanged(
is_chip_showing);
}
+} // namespace chromium_impl
std::ostream& operator<<(std::ostream& os, const SuggestionChipConfig& config) {
os << "{ should_animate: " << config.should_animate
<< ", should_announce_chip: " << config.should_announce_chip << " }";