| Index: components/html_viewer/setup.cc
|
| diff --git a/components/html_viewer/setup.cc b/components/html_viewer/setup.cc
|
| index 76a66148044c9f7acbe0eb54c49cd1b65ce030ca..1b65b1d822034c99d305e9c78be248e3f87a6dd5 100644
|
| --- a/components/html_viewer/setup.cc
|
| +++ b/components/html_viewer/setup.cc
|
| @@ -75,7 +75,7 @@ Setup::Setup(mojo::ApplicationImpl* app)
|
| discardable_memory_allocator_(kDesiredMaxMemory),
|
| compositor_thread_("compositor thread") {
|
| if (is_headless_)
|
| - InitHeadless();
|
| + InitIfNecessary(gfx::Size(1024, 1024), 1.f);
|
| }
|
|
|
| Setup::~Setup() {
|
| @@ -85,12 +85,6 @@ Setup::~Setup() {
|
| }
|
| }
|
|
|
| -void Setup::InitHeadless() {
|
| - DCHECK(!did_init_);
|
| - is_headless_ = true;
|
| - InitIfNecessary(gfx::Size(1024, 1024), 1.f);
|
| -}
|
| -
|
| void Setup::InitIfNecessary(const gfx::Size& screen_size_in_pixels,
|
| float device_pixel_ratio) {
|
| if (did_init_)
|
|
|