| Index: chrome/browser/ui/views/frame/minimize_button_metrics_win.cc
|
| diff --git a/chrome/browser/ui/views/frame/minimize_button_metrics_win.cc b/chrome/browser/ui/views/frame/minimize_button_metrics_win.cc
|
| index 93080cd5c189c62b00c9e8fe87185b438f2cf545..55e008697eb92c1801c8e7e87f708a819d0843bb 100644
|
| --- a/chrome/browser/ui/views/frame/minimize_button_metrics_win.cc
|
| +++ b/chrome/browser/ui/views/frame/minimize_button_metrics_win.cc
|
| @@ -87,6 +87,12 @@ void MinimizeButtonMetrics::OnHWNDActivated() {
|
| // correct.
|
| }
|
|
|
| +void MinimizeButtonMetrics::OnDpiChanged() {
|
| + // This ensures that the next time GetMinimizeButtonOffsetX() is called, it
|
| + // will be recalculated, given the new scale factor.
|
| + cached_minimize_button_x_delta_ = 0;
|
| +}
|
| +
|
| // This function attempts to calculate the odd and varying difference
|
| // between the results of DwmGetWindowAttribute with the
|
| // DWMWA_CAPTION_BUTTON_BOUNDS flag and the information from the
|
|
|