Index: ui/gfx/win/direct_write.cc |
diff --git a/ui/gfx/win/direct_write.cc b/ui/gfx/win/direct_write.cc |
index 91ab99b942d9989281bbb1db4cc36df53a74a755..90fd728d6beef8ef885b4472a5b0268aecb8e06b 100644 |
--- a/ui/gfx/win/direct_write.cc |
+++ b/ui/gfx/win/direct_write.cc |
@@ -54,7 +54,7 @@ void MaybeInitializeDirectWrite() { |
base::win::ScopedComPtr<IDWriteFactory> factory; |
CreateDWriteFactory(factory.Receive()); |
- if (factory == nullptr) |
+ if (!factory) |
return; |
// The skia call to create a new DirectWrite font manager instance can fail |