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

Unified Diff: chrome/app/scoped_ole_initializer.h

Issue 9664069: Move scoped_ole_initializer.h to ui/base/win and clean up ole initialization/uninitialization. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | « no previous file | chrome/chrome_exe.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/scoped_ole_initializer.h
diff --git a/chrome/app/scoped_ole_initializer.h b/chrome/app/scoped_ole_initializer.h
deleted file mode 100644
index 0bb859454627637a80bfa89670a8c73fcdf590bb..0000000000000000000000000000000000000000
--- a/chrome/app/scoped_ole_initializer.h
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) 2011 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.
-
-#ifndef CHROME_APP_SCOPED_OLE_INITIALIZER_H_
-#define CHROME_APP_SCOPED_OLE_INITIALIZER_H_
-#pragma once
-
-#include "base/logging.h"
-#include "build/build_config.h"
-
-// Wraps OLE initialization in a cross-platform class meant to be used on the
-// stack so init/uninit is done with scoping. This class is ok for use by
-// non-windows platforms; it just doesn't do anything.
-
-#if defined(OS_WIN)
-
-#include <ole2.h>
-
-class ScopedOleInitializer {
- public:
- ScopedOleInitializer() {
- int ole_result = OleInitialize(NULL);
- DCHECK_EQ(S_OK, ole_result);
- }
- ~ScopedOleInitializer() {
- OleUninitialize();
- }
-};
-
-#else
-
-class ScopedOleInitializer {
- public:
- // Empty, this class does nothing on non-win32 systems. Empty ctor is
- // necessary to avoid "unused variable" warning on gcc.
- ScopedOleInitializer() { }
-};
-
-#endif
-
-#endif // CHROME_APP_SCOPED_OLE_INITIALIZER_H_
« no previous file with comments | « no previous file | chrome/chrome_exe.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698