Skip to content

Commit 41acddd

Browse files
committed
1 parent 284bbbd commit 41acddd

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

patches/chromium/picture-in-picture.patch

+7-8
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ don't get errors for Chrome's generated resources, which are non-existent
99
because we don't generate them in our build.
1010

1111
diff --git a/chrome/browser/ui/views/overlay/close_image_button.cc b/chrome/browser/ui/views/overlay/close_image_button.cc
12-
index 1a0c7f5f204f00b52747ebb7800b39a3479f1178..52a1b350c8b5a13b4c0636b43f4773b72872f025 100644
12+
index 0d38b25bcb43f0bbedc1e71508e840a862c28a3c..94a36af528dfa220cfae6b9b1b0be1318502311b 100644
1313
--- a/chrome/browser/ui/views/overlay/close_image_button.cc
1414
+++ b/chrome/browser/ui/views/overlay/close_image_button.cc
15-
@@ -4,11 +4,14 @@
15+
@@ -4,10 +4,13 @@
1616

1717
#include "chrome/browser/ui/views/overlay/close_image_button.h"
1818

@@ -21,20 +21,19 @@ index 1a0c7f5f204f00b52747ebb7800b39a3479f1178..52a1b350c8b5a13b4c0636b43f4773b7
2121
#include "chrome/browser/ui/color/chrome_color_id.h"
2222
#include "chrome/grit/generated_resources.h"
2323
+#if BUILDFLAG(GOOGLE_CHROME_BRANDING)
24-
#include "components/omnibox/browser/omnibox_field_trial.h"
2524
#include "components/vector_icons/vector_icons.h"
2625
+#endif // BUILDFLAG(GOOGLE_CHROME_BRANDING)
2726
#include "ui/base/l10n/l10n_util.h"
2827
#include "ui/base/metadata/metadata_impl_macros.h"
2928
#include "ui/base/models/image_model.h"
30-
@@ -28,9 +31,11 @@ CloseImageButton::CloseImageButton(PressedCallback callback)
29+
@@ -26,7 +29,10 @@ CloseImageButton::CloseImageButton(PressedCallback callback)
30+
: OverlayWindowImageButton(std::move(callback)) {
3131
SetSize(gfx::Size(kCloseButtonSize, kCloseButtonSize));
3232

33-
auto* icon = &views::kIcCloseIcon;
33+
- auto* icon = &vector_icons::kCloseChromeRefreshIcon;
34+
+ auto* icon = &views::kIcCloseIcon;
3435
+#if BUILDFLAG(GOOGLE_CHROME_BRANDING)
35-
if (OmniboxFieldTrial::IsChromeRefreshIconsEnabled()) {
36-
icon = &vector_icons::kCloseChromeRefreshIcon;
37-
}
36+
+ icon = &vector_icons::kCloseChromeRefreshIcon;
3837
+#endif // BUILDFLAG(GOOGLE_CHROME_BRANDING)
3938
SetImageModel(views::Button::STATE_NORMAL,
4039
ui::ImageModel::FromVectorIcon(*icon, kColorPipWindowForeground,

0 commit comments

Comments
 (0)