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

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

Issue 40226: Fix files with lines > 80 cols. Part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 10 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 | « chrome/installer/util/google_chrome_distribution.cc ('k') | chrome/plugin/npobject_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/shell_util.cc
===================================================================
--- chrome/installer/util/shell_util.cc (revision 11111)
+++ chrome/installer/util/shell_util.cc (working copy)
@@ -45,7 +45,8 @@
public:
// This method returns a list of all the registry entries that are needed
// to register Chrome.
- static std::list<RegistryEntry*> GetAllEntries(const std::wstring& chrome_exe) {
+ static std::list<RegistryEntry*> GetAllEntries(
+ const std::wstring& chrome_exe) {
std::list<RegistryEntry*> entries;
std::wstring icon_path(chrome_exe);
ShellUtil::GetChromeIcon(icon_path);
@@ -96,7 +97,8 @@
L"Software\\Clients\\StartMenuInternet\\chrome.exe",
dist->GetApplicationName()));
entries.push_front(new RegistryEntry(
- L"Software\\Clients\\StartMenuInternet\\chrome.exe\\shell\\open\\command",
+ L"Software\\Clients\\StartMenuInternet\\chrome.exe\\shell\\open\\"
+ L"command",
quoted_exe_path));
entries.push_front(new RegistryEntry(
L"Software\\Clients\\StartMenuInternet\\chrome.exe\\DefaultIcon",
@@ -132,16 +134,19 @@
L"ApplicationName", dist->GetApplicationName()));
entries.push_front(new RegistryEntry(
- L"Software\\Clients\\StartMenuInternet\\chrome.exe\\Capabilities\\StartMenu",
+ L"Software\\Clients\\StartMenuInternet\\chrome.exe\\Capabilities\\"
+ L"StartMenu",
L"StartMenuInternet", L"chrome.exe"));
for (int i = 0; ShellUtil::kFileAssociations[i] != NULL; i++) {
entries.push_front(new RegistryEntry(
- L"Software\\Clients\\StartMenuInternet\\chrome.exe\\Capabilities\\FileAssociations",
+ L"Software\\Clients\\StartMenuInternet\\chrome.exe\\Capabilities\\"
+ L"FileAssociations",
ShellUtil::kFileAssociations[i], ShellUtil::kChromeHTMLProgId));
}
for (int i = 0; ShellUtil::kProtocolAssociations[i] != NULL; i++) {
entries.push_front(new RegistryEntry(
- L"Software\\Clients\\StartMenuInternet\\chrome.exe\\Capabilities\\URLAssociations",
+ L"Software\\Clients\\StartMenuInternet\\chrome.exe\\Capabilities\\"
+ L"URLAssociations",
ShellUtil::kProtocolAssociations[i], ShellUtil::kChromeHTMLProgId));
}
return entries;
@@ -383,7 +388,8 @@
const wchar_t* ShellUtil::kRegRegisteredApplications =
L"Software\\RegisteredApplications";
const wchar_t* ShellUtil::kRegVistaUrlPrefs =
- L"Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice";
+ L"Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\"
+ L"http\\UserChoice";
const wchar_t* ShellUtil::kAppPathsRegistryKey =
L"Software\\Microsoft\\Windows\\CurrentVersion\\App Paths";
const wchar_t* ShellUtil::kAppPathsRegistryPathName = L"Path";
« no previous file with comments | « chrome/installer/util/google_chrome_distribution.cc ('k') | chrome/plugin/npobject_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698