summaryrefslogtreecommitdiffstats
path: root/win8/delegate_execute/command_execute_impl.cc
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-28 23:47:11 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-28 23:47:11 +0000
commit9b917fdc65319d6d83a5185510cda82e3aaf1c74 (patch)
tree6cfc87a06f4d6e013967cf2beb011151d5891430 /win8/delegate_execute/command_execute_impl.cc
parenta1bfc8a9208af349125e54706e06b083e7d938d7 (diff)
downloadchromium_src-9b917fdc65319d6d83a5185510cda82e3aaf1c74.zip
chromium_src-9b917fdc65319d6d83a5185510cda82e3aaf1c74.tar.gz
chromium_src-9b917fdc65319d6d83a5185510cda82e3aaf1c74.tar.bz2
Revert 209047 "ProcessSingleton now uses base::win::MessageWindo..."
> ProcessSingleton now uses base::win::MessageWindow to create a message-only window. > > Collateral changes: > - base::win::MessageWindow registes a single window class used by all message-only windows it creates. The class is registered via base::LazyInstance. > - Added base::win::MessageWindow::FindWindow() wrapper used to find other message-only windows, including the other created by a different process. > - Removed chrome::kMessageWindowClass constant. > > Review URL: https://chromiumcodereview.appspot.com/17615003 TBR=alexeypa@chromium.org Review URL: https://codereview.chromium.org/18040003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209232 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'win8/delegate_execute/command_execute_impl.cc')
-rw-r--r--win8/delegate_execute/command_execute_impl.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/win8/delegate_execute/command_execute_impl.cc b/win8/delegate_execute/command_execute_impl.cc
index 1bed342..03fb4da 100644
--- a/win8/delegate_execute/command_execute_impl.cc
+++ b/win8/delegate_execute/command_execute_impl.cc
@@ -12,7 +12,6 @@
#include "base/file_util.h"
#include "base/path_service.h"
#include "base/strings/utf_string_conversions.h"
-#include "base/win/message_window.h"
#include "base/win/registry.h"
#include "base/win/scoped_co_mem.h"
#include "base/win/scoped_handle.h"
@@ -254,8 +253,9 @@ STDMETHODIMP CommandExecuteImpl::GetValue(enum AHE_TYPE* pahe) {
// New Aura/Ash world we don't want to go throgh FindWindow path
// and instead take decision based on launch mode.
#if !defined(USE_AURA)
- HWND chrome_window = base::win::MessageWindow::FindWindow(
- user_data_dir.value());
+ HWND chrome_window = ::FindWindowEx(HWND_MESSAGE, NULL,
+ chrome::kMessageWindowClass,
+ user_data_dir.value().c_str());
if (chrome_window) {
AtlTrace("Found chrome window %p\n", chrome_window);
// The failure cases below are deemed to happen due to the inherently racy