Index: chrome/browser/ui/libgtk2ui/owned_widget_gtk2.cc |
diff --git a/chrome/browser/ui/libgtk2ui/owned_widget_gtk2.cc b/chrome/browser/ui/libgtk2ui/owned_widget_gtk2.cc |
index cf6a3a4283a3d8ae760829f4257da1106ab646e2..e45996895a964295717706a92c62233c5bca8376 100644 |
--- a/chrome/browser/ui/libgtk2ui/owned_widget_gtk2.cc |
+++ b/chrome/browser/ui/libgtk2ui/owned_widget_gtk2.cc |
@@ -19,11 +19,8 @@ void OwnedWidgetGtk::Own(GtkWidget* widget) { |
return; |
DCHECK(!widget_); |
- // We want to make sure that Own() was called properly, right after the |
- // widget was created. There should be a floating reference. |
- DCHECK(g_object_is_floating(widget)); |
- // Sink the floating reference, we should now own this reference. |
+ // Keep a reference |
g_object_ref_sink(widget); |
widget_ = widget; |
} |