diff options
author | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-10 18:45:58 +0000 |
---|---|---|
committer | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-10 18:45:58 +0000 |
commit | 9a18283569add624b3399ee4d64d7afef05c0190 (patch) | |
tree | 63f2295ef334ad07c2890549f5a6263020d7dc2a /chrome_frame/utils.h | |
parent | b2d78470385b9131dd387183ce300fdaeb303cb5 (diff) | |
download | chromium_src-9a18283569add624b3399ee4d64d7afef05c0190.zip chromium_src-9a18283569add624b3399ee4d64d7afef05c0190.tar.gz chromium_src-9a18283569add624b3399ee4d64d7afef05c0190.tar.bz2 |
Cleanup in ProcessSingleton. These originated as candidate fixes for issue 111361, but the true fix is cpu@'s r119830.
a) Unify code to retrieve HMODULE based on address in base::GetModuleFromAddress. (cpu@'s r119830 already has the fix to use the DLL's HMODULE 119830 rather than the EXE's HINSTANCE)
b) Try harder to unregister the window class, by trying it first in ProcessSingleton::Cleanup, which gets called before the fast shutdown path calls ExitProcess(). Also, use correct HMODULE to unregister.
c) Avoid any possibility of a race to create the message window when the Create() method is called from NotifyOtherProcessOrCreate() or from outside the class by moving the implementation of Create(), which was always called from the constructor, into the constructor and making Create() just return true or false based on the success of the work already done.
BUG=111361
Review URL: http://codereview.chromium.org/9121046
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121480 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/utils.h')
-rw-r--r-- | chrome_frame/utils.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/chrome_frame/utils.h b/chrome_frame/utils.h index c76b2a4..b3899c3 100644 --- a/chrome_frame/utils.h +++ b/chrome_frame/utils.h @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -218,9 +218,6 @@ FilePath GetIETemporaryFilesFolder(); // @returns true if the version info was successfully retrieved. bool GetModuleVersion(HMODULE module, uint32* high, uint32* low); -// @returns the module handle to which an address belongs. -HMODULE GetModuleFromAddress(void* address); - // Return if the IEXPLORE is in private mode. The IEIsInPrivateBrowsing() checks // whether current process is IEXPLORE. bool IsIEInPrivate(); |