summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/external_tab_container.cc6
-rw-r--r--chrome/common/chrome_constants.cc1
-rw-r--r--chrome/common/chrome_constants.h1
3 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/external_tab_container.cc b/chrome/browser/external_tab_container.cc
index 24fb0c0..0af1adb 100644
--- a/chrome/browser/external_tab_container.cc
+++ b/chrome/browser/external_tab_container.cc
@@ -124,8 +124,10 @@ void ExternalTabContainer::SetInitialFocus(bool reverse) {
// 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
diff --git a/chrome/common/chrome_constants.cc b/chrome/common/chrome_constants.cc
index 74e69b3..f15f04a 100644
--- a/chrome/common/chrome_constants.cc
+++ b/chrome/common/chrome_constants.cc
@@ -43,7 +43,6 @@ const char kStatsFilename[] = "ChromeStats2";
const wchar_t kBrowserAppName[] = L"Chromium";
const char kStatsFilename[] = "ChromiumStats2";
#endif
-const wchar_t kExternalTabWindowClass[] = L"Chrome_ExternalTabContainer";
const wchar_t kMessageWindowClass[] = L"Chrome_MessageWindow";
const wchar_t kCrashReportLog[] = L"Reported Crashes.txt";
const wchar_t kTestingInterfaceDLL[] = L"testing_interface.dll";
diff --git a/chrome/common/chrome_constants.h b/chrome/common/chrome_constants.h
index 567b744..8864d56 100644
--- a/chrome/common/chrome_constants.h
+++ b/chrome/common/chrome_constants.h
@@ -15,7 +15,6 @@ extern const wchar_t kBrowserProcessExecutableName[];
extern const wchar_t kBrowserProcessExecutablePath[];
extern const wchar_t kBrowserAppName[];
extern const wchar_t kMessageWindowClass[];
-extern const wchar_t kExternalTabWindowClass[];
extern const wchar_t kCrashReportLog[];
extern const wchar_t kTestingInterfaceDLL[];
extern const wchar_t kNotSignedInProfile[];