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

Unified Diff: ui/gfx/render_text.cc

Issue 819223002: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 6 years 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
« no previous file with comments | « ui/gfx/font_render_params_linux.cc ('k') | ui/gfx/win/direct_write.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « ui/gfx/font_render_params_linux.cc ('k') | ui/gfx/win/direct_write.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698