summaryrefslogtreecommitdiffstats
path: root/chrome/installer
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-23 20:29:07 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-23 20:29:07 +0000
commit97d95a83f75cc8f1b9879543f1f9f6ef4f10bb10 (patch)
treefc33aad6f13fa16f948dee6efea2685744a976b5 /chrome/installer
parent107541ab7e63445e7799f90a9714d2d37a584d3b (diff)
downloadchromium_src-97d95a83f75cc8f1b9879543f1f9f6ef4f10bb10.zip
chromium_src-97d95a83f75cc8f1b9879543f1f9f6ef4f10bb10.tar.gz
chromium_src-97d95a83f75cc8f1b9879543f1f9f6ef4f10bb10.tar.bz2
windows: Fix a few things clang complains about.
No functionality change. BUG=82385 TEST=none Review URL: http://codereview.chromium.org/9200009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118725 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer')
-rw-r--r--chrome/installer/util/shell_util.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/chrome/installer/util/shell_util.cc b/chrome/installer/util/shell_util.cc
index 3e453f64..68f409e 100644
--- a/chrome/installer/util/shell_util.cc
+++ b/chrome/installer/util/shell_util.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// 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.
//
@@ -358,7 +358,7 @@ bool IsChromeRegistered(BrowserDistribution* dist,
const std::wstring& suffix) {
bool registered = true;
std::list<RegistryEntry*> entries;
- STLElementDeleter<std::list<RegistryEntry*>> entries_deleter(&entries);
+ STLElementDeleter<std::list<RegistryEntry*> > entries_deleter(&entries);
RegistryEntry::GetProgIdEntries(dist, chrome_exe, suffix, &entries);
RegistryEntry::GetSystemEntries(dist, chrome_exe, suffix, &entries);
for (std::list<RegistryEntry*>::const_iterator itr = entries.begin();
@@ -377,7 +377,7 @@ bool IsChromeRegisteredForProtocol(BrowserDistribution* dist,
const std::wstring& protocol) {
bool registered = true;
std::list<RegistryEntry*> entries;
- STLElementDeleter<std::list<RegistryEntry*>> entries_deleter(&entries);
+ STLElementDeleter<std::list<RegistryEntry*> > entries_deleter(&entries);
RegistryEntry::GetProtocolCapabilityEntries(dist, suffix, protocol, &entries);
for (std::list<RegistryEntry*>::const_iterator itr = entries.begin();
itr != entries.end() && registered; ++itr) {
@@ -532,7 +532,7 @@ bool ShellUtil::AdminNeededForRegistryCleanup(BrowserDistribution* dist,
const std::wstring& suffix) {
bool cleanup_needed = false;
std::list<RegistryEntry*> entries;
- STLElementDeleter<std::list<RegistryEntry*>> entries_deleter(&entries);
+ STLElementDeleter<std::list<RegistryEntry*> > entries_deleter(&entries);
RegistryEntry::GetProgIdEntries(dist, L"chrome.exe", suffix, &entries);
RegistryEntry::GetSystemEntries(dist, L"chrome.exe", suffix, &entries);
for (std::list<RegistryEntry*>::const_iterator itr = entries.begin();
@@ -803,7 +803,7 @@ bool ShellUtil::MakeChromeDefault(BrowserDistribution* dist,
// this on Vista also.
std::list<RegistryEntry*> entries;
- STLElementDeleter<std::list<RegistryEntry*>> entries_deleter(&entries);
+ STLElementDeleter<std::list<RegistryEntry*> > entries_deleter(&entries);
std::wstring suffix;
if (!GetUserSpecificDefaultBrowserSuffix(dist, &suffix))
suffix = L"";
@@ -866,7 +866,7 @@ bool ShellUtil::MakeChromeDefaultProtocolClient(BrowserDistribution* dist,
// Software\Classes\http key directly, we have to do this on Vista also.
std::list<RegistryEntry*> entries;
- STLElementDeleter<std::list<RegistryEntry*>> entries_deleter(&entries);
+ STLElementDeleter<std::list<RegistryEntry*> > entries_deleter(&entries);
std::wstring suffix;
if (!GetUserSpecificDefaultBrowserSuffix(dist, &suffix))
suffix = L"";
@@ -908,7 +908,7 @@ bool ShellUtil::RegisterChromeBrowser(BrowserDistribution* dist,
// If user is an admin try to register and return the status.
if (IsUserAnAdmin()) {
std::list<RegistryEntry*> entries;
- STLElementDeleter<std::list<RegistryEntry*>> entries_deleter(&entries);
+ STLElementDeleter<std::list<RegistryEntry*> > entries_deleter(&entries);
RegistryEntry::GetProgIdEntries(dist, chrome_exe, suffix, &entries);
RegistryEntry::GetSystemEntries(dist, chrome_exe, suffix, &entries);
return AddRegistryEntries(HKEY_LOCAL_MACHINE, entries);
@@ -923,7 +923,7 @@ bool ShellUtil::RegisterChromeBrowser(BrowserDistribution* dist,
// If we got to this point then all we can do is create ProgIds under HKCU
// on XP as well as Vista.
std::list<RegistryEntry*> entries;
- STLElementDeleter<std::list<RegistryEntry*>> entries_deleter(&entries);
+ STLElementDeleter<std::list<RegistryEntry*> > entries_deleter(&entries);
RegistryEntry::GetProgIdEntries(dist, chrome_exe, L"", &entries);
return AddRegistryEntries(HKEY_CURRENT_USER, entries);
}
@@ -962,7 +962,7 @@ bool ShellUtil::RegisterChromeForProtocol(BrowserDistribution* dist,
// Write in the capabillity for the protocol.
std::list<RegistryEntry*> entries;
- STLElementDeleter<std::list<RegistryEntry*>> entries_deleter(&entries);
+ STLElementDeleter<std::list<RegistryEntry*> > entries_deleter(&entries);
RegistryEntry::GetProtocolCapabilityEntries(dist, suffix, protocol,
&entries);
return AddRegistryEntries(HKEY_LOCAL_MACHINE, entries);