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

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

Issue 1995963002: Fix "unused variable" warnings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Undo accidental change Created 4 years, 7 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: ui/base/ime/input_method_auralinux_unittest.cc
diff --git a/ui/base/ime/input_method_auralinux_unittest.cc b/ui/base/ime/input_method_auralinux_unittest.cc
index e01cf14bb2622cee37bd1c7cd1b0e57996d70e0c..2f8e215a133747f086f1c70c14471a4667a59ac8 100644
--- a/ui/base/ime/input_method_auralinux_unittest.cc
+++ b/ui/base/ime/input_method_auralinux_unittest.cc
@@ -57,10 +57,9 @@ class TestResult {
class LinuxInputMethodContextForTesting : public LinuxInputMethodContext {
public:
- LinuxInputMethodContextForTesting(LinuxInputMethodContextDelegate* delegate,
- bool is_simple)
+ explicit LinuxInputMethodContextForTesting(
+ LinuxInputMethodContextDelegate* delegate)
: delegate_(delegate),
- is_simple_(is_simple),
is_sync_mode_(false),
eat_key_(false),
focused_(false) {}
@@ -129,7 +128,6 @@ class LinuxInputMethodContextForTesting : public LinuxInputMethodContext {
private:
LinuxInputMethodContextDelegate* delegate_;
std::vector<base::string16> actions_;
- bool is_simple_;
bool is_sync_mode_;
bool eat_key_;
bool focused_;
@@ -147,7 +145,7 @@ class LinuxInputMethodContextFactoryForTesting
LinuxInputMethodContextDelegate* delegate,
bool is_simple) const override {
return std::unique_ptr<ui::LinuxInputMethodContext>(
- new LinuxInputMethodContextForTesting(delegate, is_simple));
+ new LinuxInputMethodContextForTesting(delegate));
};
private:

Powered by Google App Engine
This is Rietveld 408576698