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

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

Issue 2758323002: Broke out layout metric information from ViewsDelegate to LayoutProvider (Closed)
Patch Set: LayoutDelegate -> LayoutProvider Created 3 years, 8 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 f2f72a0ef9b7c5ed580d7b0066d0fc0f514ab4dc..5358d07d4209874ef4bacfa2ef8d8665a0f7a901 100644
--- a/ui/views/test/test_views_delegate_mac.mm
+++ b/ui/views/test/test_views_delegate_mac.mm
@@ -12,7 +12,8 @@ TestViewsDelegate::TestViewsDelegate()
: context_factory_(nullptr),
context_factory_private_(nullptr),
use_desktop_native_widgets_(false),
- use_transparent_windows_(false) {}
+ use_transparent_windows_(false),
+ layout_provider_(base::MakeUnique<LayoutProvider>()) {}
TestViewsDelegate::~TestViewsDelegate() {
}
@@ -38,8 +39,4 @@ ui::ContextFactoryPrivate* TestViewsDelegate::GetContextFactoryPrivate() {
return context_factory_private_;
}
-const TypographyProvider& TestViewsDelegate::GetTypographyProvider() const {
- return typography_provider_;
-}
-
} // namespace views

Powered by Google App Engine
This is Rietveld 408576698