summaryrefslogtreecommitdiffstats
path: root/chrome/browser/history/history_publisher_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/history/history_publisher_win.cc')
-rw-r--r--chrome/browser/history/history_publisher_win.cc5
1 files changed, 3 insertions, 2 deletions
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 <wtypes.h>
#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<LPOLESTR>(
const_cast<TCHAR*>(iter.Name())), &clsid);
- CComPtr<IChromeHistoryIndexer> indexer;
+ ScopedComPtr<IChromeHistoryIndexer> indexer;
HRESULT hr = CoCreateInstance(clsid, NULL, CLSCTX_INPROC,
__uuidof(IChromeHistoryIndexer),
reinterpret_cast<void**>(&indexer));