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

Unified Diff: views/controls/native/native_view_host.h

Issue 510004: Fix crash/leak issue in native_view_host_gtk.cc. (Closed)
Patch Set: " Created 11 years 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: views/controls/native/native_view_host.h
diff --git a/views/controls/native/native_view_host.h b/views/controls/native/native_view_host.h
index 9970901cddaf5b2f817dabaa018c3e3e369868bb..d6115b289606205f8609d1162917ce41d335a396 100644
--- a/views/controls/native/native_view_host.h
+++ b/views/controls/native/native_view_host.h
@@ -81,6 +81,10 @@ class NativeViewHost : public View {
virtual std::string GetClassName() const;
private:
+ // Detach the native view. |destroyed| is true if the native view is
+ // detached because it's being destroyed, or false otherwise.
+ void Detach(bool destroyed);
+
// The attached native view.
gfx::NativeView native_view_;
« no previous file with comments | « chrome/browser/views/tab_contents/tab_contents_view_gtk.cc ('k') | views/controls/native/native_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698