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

Unified Diff: content/common/text_input_state.cc

Issue 1894473002: [Abandoned/Root cause CL reverted]Fix crash: Initialize all fields of TextInputState. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/text_input_state.cc
diff --git a/content/common/text_input_state.cc b/content/common/text_input_state.cc
index bf6932b11e640dafe7cf22bba2281e854a00accd..ec5fbfe9d4ea4adf6fa5475bc92827919cba84a1 100644
--- a/content/common/text_input_state.cc
+++ b/content/common/text_input_state.cc
@@ -10,8 +10,13 @@ TextInputState::TextInputState()
: type(ui::TEXT_INPUT_TYPE_NONE),
mode(ui::TEXT_INPUT_MODE_DEFAULT),
flags(0),
+ selection_start(0),
+ selection_end(0),
+ composition_start(-1),
+ composition_end(-1),
can_compose_inline(true),
- show_ime_if_needed(false) {}
+ show_ime_if_needed(false),
+ is_non_ime_change(true) {}
EhsanK 2016/04/15 11:59:28 changwan@ will have a better opinion, but I think
kinaba 2016/04/15 16:53:37 You're right that we should not cause sending unma
Charlie Reis 2016/04/15 16:57:39 +1 to false (from an uninformed standpoint), but I
Charlie Reis 2016/04/15 17:16:53 Ah, our comments overlapped. Your explanation mak
EhsanK 2016/04/15 18:05:15 I think based on your comment it has to be initial
TextInputState::TextInputState(const TextInputState& other) = default;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698