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

Unified Diff: content/renderer/render_widget.cc

Issue 1771223002: Migrate *-ime-thread switches to feature API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: plumb imeadapter instead and fixed nits Created 4 years, 9 months 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
Index: content/renderer/render_widget.cc
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index 8220160900f75fe023a3c0a1d38dff66b0598c90..ec1227d8b35d938edbeb47fbab2a91a4e5c39b03 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -9,6 +9,7 @@
#include "base/auto_reset.h"
#include "base/bind.h"
#include "base/command_line.h"
+#include "base/feature_list.h"
#include "base/logging.h"
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
@@ -38,6 +39,7 @@
#include "content/common/input_messages.h"
#include "content/common/swapped_out_messages.h"
#include "content/common/view_messages.h"
+#include "content/public/common/content_features.h"
#include "content/public/common/content_switches.h"
#include "content/public/common/context_menu_params.h"
#include "content/renderer/cursor_utils.h"
@@ -1749,10 +1751,7 @@ void RenderWidget::set_next_paint_is_repaint_ack() {
bool RenderWidget::IsUsingImeThread() {
#if defined(OS_ANDROID)
- return base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableImeThread) &&
- !base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kDisableImeThread);
+ return base::FeatureList::IsEnabled(features::kImeThread);
#else
return false;
#endif

Powered by Google App Engine
This is Rietveld 408576698