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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/common/text_input_state.h" 5 #include "content/common/text_input_state.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 TextInputState::TextInputState() 9 TextInputState::TextInputState()
10 : type(ui::TEXT_INPUT_TYPE_NONE), 10 : type(ui::TEXT_INPUT_TYPE_NONE),
11 mode(ui::TEXT_INPUT_MODE_DEFAULT), 11 mode(ui::TEXT_INPUT_MODE_DEFAULT),
12 flags(0), 12 flags(0),
13 selection_start(0),
14 selection_end(0),
15 composition_start(-1),
16 composition_end(-1),
13 can_compose_inline(true), 17 can_compose_inline(true),
14 show_ime_if_needed(false) {} 18 show_ime_if_needed(false),
19 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
15 20
16 TextInputState::TextInputState(const TextInputState& other) = default; 21 TextInputState::TextInputState(const TextInputState& other) = default;
17 22
18 } // namespace content 23 } // namespace content
OLDNEW
« 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