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

Unified Diff: ui/views/test/test_views_delegate_mac.mm

Issue 1159033008: Refactor ViewsDelegate singleton (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 6 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
Index: ui/views/test/test_views_delegate_mac.mm
diff --git a/ui/views/test/test_views_delegate_mac.mm b/ui/views/test/test_views_delegate_mac.mm
index 5d3c352cb8b133a016d0f0d019b0886c6ab37d89..652c3976303bb196106dab63fdd35983215bd4da 100644
--- a/ui/views/test/test_views_delegate_mac.mm
+++ b/ui/views/test/test_views_delegate_mac.mm
@@ -12,13 +12,9 @@ TestViewsDelegate::TestViewsDelegate()
: context_factory_(nullptr),
use_desktop_native_widgets_(false),
use_transparent_windows_(false) {
- DCHECK(!ViewsDelegate::views_delegate);
- ViewsDelegate::views_delegate = this;
}
TestViewsDelegate::~TestViewsDelegate() {
- if (ViewsDelegate::views_delegate == this)
- ViewsDelegate::views_delegate = NULL;
}
void TestViewsDelegate::OnBeforeWidgetInit(

Powered by Google App Engine
This is Rietveld 408576698