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

Unified Diff: components/arc/instance_holder.h

Issue 2106663004: arc: Initial implemetation of Chrome sync for Arc packages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Wrap bridge state related method in unit_tests. Created 4 years, 5 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
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/25 17:31:17 I prefer if this would only be |!raw_ptr_|, since
lgcheng 2016/07/25 20:45:17 Done.
return;
ptr_.reset();

Powered by Google App Engine
This is Rietveld 408576698