Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(250)

Unified Diff: ui/views/widget/widget.h

Issue 2711853004: Fix a crash due to reentrancy in the widget while processing a theme changed notification after com… (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/views/widget/widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/widget.h
diff --git a/ui/views/widget/widget.h b/ui/views/widget/widget.h
index 2c5ba165dd74f95145584a07675811d383f3064d..5931af7e59e2a0f25a78cc5627e08ad2292fae4a 100644
--- a/ui/views/widget/widget.h
+++ b/ui/views/widget/widget.h
@@ -979,6 +979,9 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate,
ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_;
+ // Guard to avoid reentrancy while processing a theme changed message.
+ bool processing_theme_changed_;
+
DISALLOW_COPY_AND_ASSIGN(Widget);
};
« no previous file with comments | « no previous file | ui/views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698