summaryrefslogtreecommitdiffstats
path: root/chrome/common/owned_widget_gtk.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/owned_widget_gtk.cc')
-rw-r--r--chrome/common/owned_widget_gtk.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/chrome/common/owned_widget_gtk.cc b/chrome/common/owned_widget_gtk.cc
index 6b4f0d5..f9b8bef 100644
--- a/chrome/common/owned_widget_gtk.cc
+++ b/chrome/common/owned_widget_gtk.cc
@@ -15,10 +15,8 @@ OwnedWidgetGtk::~OwnedWidgetGtk() {
void OwnedWidgetGtk::Own(GtkWidget* widget) {
DCHECK(!widget_);
// We want to make sure that Own() was called properly, right after the
- // widget was created. We should have a floating refcount of 1.
+ // widget was created. There should be a floating reference.
DCHECK(g_object_is_floating(widget));
- // NOTE: Assumes some implementation details about glib internals.
- DCHECK(G_OBJECT(widget)->ref_count == 1);
// Sink the floating reference, we should now own this reference.
g_object_ref_sink(widget);