| Index: ui/gfx/render_text.cc
|
| diff --git a/ui/gfx/render_text.cc b/ui/gfx/render_text.cc
|
| index c569b9e62e5b4e772102592a3eaea177e0fe4802..8141d483854cff9a8a19bdddf5ea18cfd1c9df0a 100644
|
| --- a/ui/gfx/render_text.cc
|
| +++ b/ui/gfx/render_text.cc
|
| @@ -399,18 +399,21 @@ RenderText::~RenderText() {
|
|
|
| RenderText* RenderText::CreateInstance() {
|
| #if defined(OS_MACOSX)
|
| - static const bool use_harfbuzz = CommandLine::ForCurrentProcess()->
|
| - HasSwitch(switches::kEnableHarfBuzzRenderText);
|
| + static const bool use_harfbuzz =
|
| + base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kEnableHarfBuzzRenderText);
|
| #else
|
| - static const bool use_harfbuzz = !CommandLine::ForCurrentProcess()->
|
| - HasSwitch(switches::kDisableHarfBuzzRenderText);
|
| + static const bool use_harfbuzz =
|
| + !base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kDisableHarfBuzzRenderText);
|
| #endif
|
| return use_harfbuzz ? new RenderTextHarfBuzz : CreateNativeInstance();
|
| }
|
|
|
| RenderText* RenderText::CreateInstanceForEditing() {
|
| - static const bool use_harfbuzz = !CommandLine::ForCurrentProcess()->
|
| - HasSwitch(switches::kDisableHarfBuzzRenderText);
|
| + static const bool use_harfbuzz =
|
| + !base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kDisableHarfBuzzRenderText);
|
| return use_harfbuzz ? new RenderTextHarfBuzz : CreateNativeInstance();
|
| }
|
|
|
|
|