From f71e72699d8535e85fc47c6c2b63f84f796bef71 Mon Sep 17 00:00:00 2001 From: "maruel@chromium.org" Date: Thu, 14 May 2009 19:13:13 +0000 Subject: Remove even more ATL dependencies. Review URL: http://codereview.chromium.org/115309 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16088 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/history/history_publisher.cc | 2 +- chrome/browser/history/history_publisher.h | 10 ++++------ chrome/browser/history/history_publisher_win.cc | 5 +++-- 3 files changed, 8 insertions(+), 9 deletions(-) (limited to 'chrome/browser/history') diff --git a/chrome/browser/history/history_publisher.cc b/chrome/browser/history/history_publisher.cc index 52327c5..364bb821 100644 --- a/chrome/browser/history/history_publisher.cc +++ b/chrome/browser/history/history_publisher.cc @@ -6,7 +6,7 @@ namespace history { -const char* HistoryPublisher::kThumbnailImageFormat = "image/jpeg"; +const char* const HistoryPublisher::kThumbnailImageFormat = "image/jpeg"; void HistoryPublisher::PublishPageThumbnail( const std::vector& thumbnail, const GURL& url, diff --git a/chrome/browser/history/history_publisher.h b/chrome/browser/history/history_publisher.h index 71005e5..e44a19e 100644 --- a/chrome/browser/history/history_publisher.h +++ b/chrome/browser/history/history_publisher.h @@ -8,14 +8,12 @@ #include #include -#include "base/basictypes.h" #include "base/time.h" #include "chrome/browser/history/history_types.h" #include "googleurl/src/gurl.h" #if defined(OS_WIN) -#include -#include +#include "base/scoped_comptr_win.h" #include "history_indexer.h" #endif @@ -60,18 +58,18 @@ class HistoryPublisher { // Returns '0' if the time object is NULL. static double TimeToUTCVariantTime(const base::Time& time); - typedef std::vector > IndexerList; + typedef std::vector< ScopedComPtr > IndexerList; // The list of indexers registered to receive history data from us. IndexerList indexers_; // The Registry key under HKCU where the indexers need to register their // CLSID. - static const wchar_t* kRegKeyRegisteredIndexersInfo; + static const wchar_t* const kRegKeyRegisteredIndexersInfo; #endif // The format of the thumbnail we pass to indexers. - static const char* kThumbnailImageFormat; + static const char* const kThumbnailImageFormat; DISALLOW_COPY_AND_ASSIGN(HistoryPublisher); }; diff --git a/chrome/browser/history/history_publisher_win.cc b/chrome/browser/history/history_publisher_win.cc index 72c0f1d..ef4fb7f 100644 --- a/chrome/browser/history/history_publisher_win.cc +++ b/chrome/browser/history/history_publisher_win.cc @@ -10,10 +10,11 @@ #include #include "base/registry.h" +#include "base/scoped_comptr_win.h" namespace history { -const wchar_t* HistoryPublisher::kRegKeyRegisteredIndexersInfo = +const wchar_t* const HistoryPublisher::kRegKeyRegisteredIndexersInfo = L"Software\\Google\\Google Chrome\\IndexerPlugins"; // static @@ -60,7 +61,7 @@ bool HistoryPublisher::ReadRegisteredIndexersFromRegistry() { CLSID clsid; CLSIDFromString(static_cast( const_cast(iter.Name())), &clsid); - CComPtr indexer; + ScopedComPtr indexer; HRESULT hr = CoCreateInstance(clsid, NULL, CLSCTX_INPROC, __uuidof(IChromeHistoryIndexer), reinterpret_cast(&indexer)); -- cgit v1.1