Chromium Code Reviews| Index: blimp/common/create_blimp_message.cc |
| diff --git a/blimp/common/create_blimp_message.cc b/blimp/common/create_blimp_message.cc |
| index 09e6dea0cb7fa70a0fe3aa0c2f7efebbce913f02..ddb28dc9592fefed54815e8e330584a3a965957b 100644 |
| --- a/blimp/common/create_blimp_message.cc |
| +++ b/blimp/common/create_blimp_message.cc |
| @@ -53,6 +53,16 @@ scoped_ptr<BlimpMessage> CreateBlimpMessage( |
| return output; |
| } |
| +scoped_ptr<BlimpMessage> CreateBlimpMessage(ImeMessage** ime_message, |
| + int target_tab_id) { |
| + DCHECK(ime_message); |
|
Wez
2016/03/18 20:51:28
nit: Why do we DCHECK the out-parameter here & in
Wez
2016/03/22 21:43:38
Pingy.
shaktisahu
2016/03/22 23:45:42
Since ime_message is a pointer to pointer, shouldn
Wez
2016/03/23 00:10:53
DCHECK makes sense where you are given a pointer t
shaktisahu
2016/03/23 01:44:13
I think DCHECK makes it easier for me to debug in
Wez
2016/03/23 23:21:25
How does it make it easier?
|
| + scoped_ptr<BlimpMessage> output(new BlimpMessage); |
| + output->set_type(BlimpMessage::IME); |
| + output->set_target_tab_id(target_tab_id); |
| + *ime_message = output->mutable_ime(); |
| + return output; |
| +} |
| + |
| scoped_ptr<BlimpMessage> CreateBlimpMessage( |
| RenderWidgetMessage** render_widget_message, |
| int target_tab_id) { |