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

Unified Diff: chrome/browser/external_tab_container.cc

Issue 115833: With the recent change to the ExternalTabContainer to have it subclass Widget... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 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
« no previous file with comments | « no previous file | chrome/common/chrome_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/external_tab_container.cc
===================================================================
--- chrome/browser/external_tab_container.cc (revision 17018)
+++ chrome/browser/external_tab_container.cc (working copy)
@@ -124,8 +124,10 @@
// static
bool ExternalTabContainer::IsExternalTabContainer(HWND window) {
- std::wstring class_name = win_util::GetClassName(window);
- return _wcsicmp(class_name.c_str(), chrome::kExternalTabWindowClass) == 0;
+ if (GetProp(window, kWindowObjectKey) != NULL)
+ return true;
+
+ return false;
}
// static
« no previous file with comments | « no previous file | chrome/common/chrome_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698