| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 // | 4 // |
| 5 // This file defines functions that integrate Chrome in Windows shell. These | 5 // This file defines functions that integrate Chrome in Windows shell. These |
| 6 // functions can be used by Chrome as well as Chrome installer. All of the | 6 // functions can be used by Chrome as well as Chrome installer. All of the |
| 7 // work is done by the local functions defined in anonymous namespace in | 7 // work is done by the local functions defined in anonymous namespace in |
| 8 // this class. | 8 // this class. |
| 9 | 9 |
| 10 #include "chrome/installer/util/shell_util.h" | 10 #include "chrome/installer/util/shell_util.h" |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 const wchar_t* ShellUtil::kChromeHTMLProgId = L"ChromeHTML"; | 416 const wchar_t* ShellUtil::kChromeHTMLProgId = L"ChromeHTML"; |
| 417 const wchar_t* ShellUtil::kChromeHTMLProgIdDesc = L"Chrome HTML Document"; | 417 const wchar_t* ShellUtil::kChromeHTMLProgIdDesc = L"Chrome HTML Document"; |
| 418 #else | 418 #else |
| 419 const wchar_t* ShellUtil::kChromeHTMLProgId = L"ChromiumHTML"; | 419 const wchar_t* ShellUtil::kChromeHTMLProgId = L"ChromiumHTML"; |
| 420 const wchar_t* ShellUtil::kChromeHTMLProgIdDesc = L"Chromium HTML Document"; | 420 const wchar_t* ShellUtil::kChromeHTMLProgIdDesc = L"Chromium HTML Document"; |
| 421 #endif | 421 #endif |
| 422 | 422 |
| 423 const wchar_t* ShellUtil::kFileAssociations[] = {L".htm", L".html", L".shtml", | 423 const wchar_t* ShellUtil::kFileAssociations[] = {L".htm", L".html", L".shtml", |
| 424 L".xht", L".xhtml", NULL}; | 424 L".xht", L".xhtml", NULL}; |
| 425 const wchar_t* ShellUtil::kProtocolAssociations[] = {L"ftp", L"http", L"https", | 425 const wchar_t* ShellUtil::kProtocolAssociations[] = {L"ftp", L"http", L"https", |
| 426 NULL}; | 426 L"httpsv", NULL}; |
| 427 const wchar_t* ShellUtil::kRegUrlProtocol = L"URL Protocol"; | 427 const wchar_t* ShellUtil::kRegUrlProtocol = L"URL Protocol"; |
| 428 | 428 |
| 429 bool ShellUtil::AdminNeededForRegistryCleanup(BrowserDistribution* dist, | 429 bool ShellUtil::AdminNeededForRegistryCleanup(BrowserDistribution* dist, |
| 430 const std::wstring& suffix) { | 430 const std::wstring& suffix) { |
| 431 bool cleanup_needed = false; | 431 bool cleanup_needed = false; |
| 432 std::list<RegistryEntry*> entries; | 432 std::list<RegistryEntry*> entries; |
| 433 STLElementDeleter<std::list<RegistryEntry*>> entries_deleter(&entries); | 433 STLElementDeleter<std::list<RegistryEntry*>> entries_deleter(&entries); |
| 434 RegistryEntry::GetProgIdEntries(dist, L"chrome.exe", suffix, &entries); | 434 RegistryEntry::GetProgIdEntries(dist, L"chrome.exe", suffix, &entries); |
| 435 RegistryEntry::GetSystemEntries(dist, L"chrome.exe", suffix, &entries); | 435 RegistryEntry::GetSystemEntries(dist, L"chrome.exe", suffix, &entries); |
| 436 for (std::list<RegistryEntry*>::const_iterator itr = entries.begin(); | 436 for (std::list<RegistryEntry*>::const_iterator itr = entries.begin(); |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 809 chrome_exe.c_str(), // target | 809 chrome_exe.c_str(), // target |
| 810 shortcut.c_str(), // shortcut | 810 shortcut.c_str(), // shortcut |
| 811 chrome_path.c_str(), // working dir | 811 chrome_path.c_str(), // working dir |
| 812 NULL, // arguments | 812 NULL, // arguments |
| 813 description.c_str(), // description | 813 description.c_str(), // description |
| 814 chrome_exe.c_str(), // icon file | 814 chrome_exe.c_str(), // icon file |
| 815 icon_index, // icon index | 815 icon_index, // icon index |
| 816 dist->GetBrowserAppId().c_str()); // app id | 816 dist->GetBrowserAppId().c_str()); // app id |
| 817 } | 817 } |
| 818 } | 818 } |
| OLD | NEW |