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

Unified Diff: ui/base/ime/input_method_factory.cc

Issue 2570873002: Revert of Implement a runtime headless mode for Linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « headless/lib/utility/headless_content_utility_client.cc ('k') | ui/gfx/icc_profile_x11.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/input_method_factory.cc
diff --git a/ui/base/ime/input_method_factory.cc b/ui/base/ime/input_method_factory.cc
index 0859afff99b679eb91d05cfcc1d6e2d0bfb57a55..f0ed9e28545ca33cff7a2ca5b6043c73c3fbf9e5 100644
--- a/ui/base/ime/input_method_factory.cc
+++ b/ui/base/ime/input_method_factory.cc
@@ -4,11 +4,9 @@
#include "ui/base/ime/input_method_factory.h"
-#include "base/command_line.h"
#include "base/memory/ptr_util.h"
#include "build/build_config.h"
#include "ui/base/ime/mock_input_method.h"
-#include "ui/gfx/switches.h"
#if defined(OS_CHROMEOS)
#include "ui/base/ime/input_method_chromeos.h"
@@ -51,9 +49,6 @@
if (g_input_method_set_for_testing)
return base::MakeUnique<MockInputMethod>(delegate);
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(switches::kHeadless))
- return base::WrapUnique(new MockInputMethod(delegate));
-
#if defined(OS_CHROMEOS)
return base::MakeUnique<InputMethodChromeOS>(delegate);
#elif defined(OS_WIN)
« no previous file with comments | « headless/lib/utility/headless_content_utility_client.cc ('k') | ui/gfx/icc_profile_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698