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

Unified Diff: chrome/installer/util/shell_util.cc

Issue 9200009: windows: Fix a few things clang complains about. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 11 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 | « base/win/sampling_profiler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/shell_util.cc
diff --git a/chrome/installer/util/shell_util.cc b/chrome/installer/util/shell_util.cc
index 3e453f64d0da5250c846feaf9d87e00cd0f448d8..e1922a6d068b11f445e42d16887d2f45e142d0b3 100644
--- a/chrome/installer/util/shell_util.cc
+++ b/chrome/installer/util/shell_util.cc
@@ -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);
« no previous file with comments | « base/win/sampling_profiler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698