From 530f43f302f1eef9d3530767015891f1db1f1272 Mon Sep 17 00:00:00 2001 From: "jhawkins@chromium.org" Date: Fri, 4 Sep 2009 20:04:07 +0000 Subject: Use ScopedComPtr instead of CComPtr to reduce a dependency on ATL. BUG=5027 TEST=none Review URL: http://codereview.chromium.org/201012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25498 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/platform_util_win.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'chrome/common/platform_util_win.cc') diff --git a/chrome/common/platform_util_win.cc b/chrome/common/platform_util_win.cc index b602388..68cc839 100644 --- a/chrome/common/platform_util_win.cc +++ b/chrome/common/platform_util_win.cc @@ -4,8 +4,6 @@ #include "chrome/common/platform_util.h" -#include -#include #include #include #include @@ -17,6 +15,7 @@ #include "base/gfx/native_widget_types.h" #include "base/logging.h" #include "base/registry.h" +#include "base/scoped_comptr_win.h" #include "base/string_util.h" #include "googleurl/src/gurl.h" @@ -58,8 +57,8 @@ void ShowItemInFolder(const FilePath& full_path) { return; } - CComPtr desktop; - HRESULT hr = SHGetDesktopFolder(&desktop); + ScopedComPtr desktop; + HRESULT hr = SHGetDesktopFolder(desktop.Receive()); if (FAILED(hr)) return; -- cgit v1.1