Chromium Code Reviews| Index: components/arc/instance_holder.h |
| diff --git a/components/arc/instance_holder.h b/components/arc/instance_holder.h |
| index 2d22f759b0b73dc921e0ecdf538cf45a1b3a3252..67e98292a535b661597a1bcaeb109f71fac74dcd 100644 |
| --- a/components/arc/instance_holder.h |
| +++ b/components/arc/instance_holder.h |
| @@ -62,7 +62,7 @@ class InstanceHolder { |
| // Called when the channel is closed. |
| void CloseChannel() { |
| - if (!ptr_) |
| + if (!ptr_ && !raw_ptr_) |
|
Luis Héctor Chávez
2016/07/20 00:01:15
Why is this needed?
lgcheng
2016/07/20 01:23:58
In test, ptr_ is never set. only raw_ptr_ is set.
|
| return; |
| ptr_.reset(); |