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

Unified Diff: ui/base/win/scoped_ole_initializer.cc

Issue 860873002: Continue deleting code in ui/. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 2015 Created 5 years, 11 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 | « ui/base/win/scoped_ole_initializer.h ('k') | ui/base/win/shell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/win/scoped_ole_initializer.cc
diff --git a/ui/base/win/scoped_ole_initializer.cc b/ui/base/win/scoped_ole_initializer.cc
deleted file mode 100644
index 48361aa08965037a62a48cbae47f7436dea99bcd..0000000000000000000000000000000000000000
--- a/ui/base/win/scoped_ole_initializer.cc
+++ /dev/null
@@ -1,36 +0,0 @@
-// 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.
-
-#include "ui/base/win/scoped_ole_initializer.h"
-
-#include "base/logging.h"
-
-namespace ui {
-
-ScopedOleInitializer::ScopedOleInitializer()
- :
-#ifndef NDEBUG
- // Using the windows API directly to avoid dependency on platform_thread.
- thread_id_(GetCurrentThreadId()),
-#endif
- hr_(OleInitialize(NULL)) {
-#ifndef NDEBUG
- if (hr_ == S_FALSE) {
- LOG(ERROR) << "Multiple OleInitialize() calls for thread " << thread_id_;
- } else {
- DCHECK_NE(OLE_E_WRONGCOMPOBJ, hr_) << "Incompatible DLLs on machine";
- DCHECK_NE(RPC_E_CHANGED_MODE, hr_) << "Invalid COM thread model change";
- }
-#endif
-}
-
-ScopedOleInitializer::~ScopedOleInitializer() {
-#ifndef NDEBUG
- DCHECK_EQ(thread_id_, GetCurrentThreadId());
-#endif
- if (SUCCEEDED(hr_))
- OleUninitialize();
-}
-
-} // namespace ui
« no previous file with comments | « ui/base/win/scoped_ole_initializer.h ('k') | ui/base/win/shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698