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

Unified Diff: views/widget/widget_win.cc

Issue 434046: Support for chrome.experimental.popup API in ExternalTabContainer views (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
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/widget/widget_win.cc
===================================================================
--- views/widget/widget_win.cc (revision 34039)
+++ views/widget/widget_win.cc (working copy)
@@ -470,7 +470,9 @@
}
LRESULT WidgetWin::OnCreate(CREATESTRUCT* create_struct) {
- SetNativeWindowProperty(kWidgetKey, this);
+ // Widget::GetWidgetFromNativeView expects the contents of this property
+ // to be of type Widget, so the cast is necessary.
+ SetNativeWindowProperty(kWidgetKey, static_cast<Widget*>(this));
return 0;
}

Powered by Google App Engine
This is Rietveld 408576698