summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/api/input_ime/input_ime_api.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/api/input_ime/input_ime_api.cc')
-rw-r--r--chrome/browser/extensions/api/input_ime/input_ime_api.cc17
1 files changed, 10 insertions, 7 deletions
diff --git a/chrome/browser/extensions/api/input_ime/input_ime_api.cc b/chrome/browser/extensions/api/input_ime/input_ime_api.cc
index 7e1cefb..abe1bfe 100644
--- a/chrome/browser/extensions/api/input_ime/input_ime_api.cc
+++ b/chrome/browser/extensions/api/input_ime/input_ime_api.cc
@@ -602,16 +602,19 @@ bool InputImeSetCandidateWindowPropertiesFunction::RunImpl() {
modified = true;
}
- if (modified) {
- engine->SetCandidateWindowProperty(properties_out);
+ if (properties.auxiliary_text) {
+ properties_out.auxiliary_text = *properties.auxiliary_text;
+ modified = true;
}
- if (properties.auxiliary_text)
- engine->SetCandidateWindowAuxText(properties.auxiliary_text->c_str());
-
if (properties.auxiliary_text_visible) {
- engine->SetCandidateWindowAuxTextVisible(
- *properties.auxiliary_text_visible);
+ properties_out.is_auxiliary_text_visible =
+ *properties.auxiliary_text_visible;
+ modified = true;
+ }
+
+ if (modified) {
+ engine->SetCandidateWindowProperty(properties_out);
}
SetResult(new base::FundamentalValue(true));