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

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

Issue 2703933002: Fix a crash due to reentrancy in the widget while processing a theme changed notification after com… (Closed)
Patch Set: Use AutoReset 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 33c065643f1cfb6ce82f3dff3b9e4f2ef367b338..505beb1e9e4b3b5d9c4b1fc3091230c61326a26a 100644
--- a/ui/views/widget/widget.h
+++ b/ui/views/widget/widget.h
@@ -992,6 +992,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