summaryrefslogtreecommitdiffstats
path: root/chrome/common/win_util.cc
diff options
context:
space:
mode:
authortommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-11 20:57:44 +0000
committertommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-11 20:57:44 +0000
commit73ecbbee4f993079a1aab60dfe140effd79f50d8 (patch)
tree9c3c1bad4d4dbd58f86ea7deb43d2d520b1fecff /chrome/common/win_util.cc
parentb09e09085f7778d06d4b9ceef1e841d950f69eaa (diff)
downloadchromium_src-73ecbbee4f993079a1aab60dfe140effd79f50d8.zip
chromium_src-73ecbbee4f993079a1aab60dfe140effd79f50d8.tar.gz
chromium_src-73ecbbee4f993079a1aab60dfe140effd79f50d8.tar.bz2
Fixing build break after I moved the meat of ScopedCOMInitializer into the .cc file.
Instead of modifying all of the depending .scons and .vcproj files, I'm just removing the DCHECK() I had added and moving the calls back into the header file where they were to begin with. Review URL: http://codereview.chromium.org/17350 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7861 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/win_util.cc')
-rw-r--r--chrome/common/win_util.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/chrome/common/win_util.cc b/chrome/common/win_util.cc
index 6af0db8..1c552a2 100644
--- a/chrome/common/win_util.cc
+++ b/chrome/common/win_util.cc
@@ -82,15 +82,6 @@ UINT_PTR CALLBACK SaveAsDialogHook(HWND dialog, UINT message,
} // namespace
-ScopedCOMInitializer::ScopedCOMInitializer() : hr_(CoInitialize(NULL)) {
- DCHECK(hr_ != RPC_E_CHANGED_MODE) << "thread already initialized as MTA";
-}
-
-ScopedCOMInitializer::~ScopedCOMInitializer() {
- if (SUCCEEDED(hr_))
- CoUninitialize();
-}
-
std::wstring FormatSystemTime(const SYSTEMTIME& time,
const std::wstring& format) {
// If the format string is empty, just use the default format.