chore: fix some more warnings in windows build (#13431)
Remove an unused function and fix an int type comparison warning. Only showed up when building with GN.
This commit is contained in:
parent
6f91af9343
commit
78bc1081fd
2 changed files with 2 additions and 18 deletions
|
@ -31,22 +31,6 @@
|
|||
|
||||
namespace {
|
||||
|
||||
// Old ShellExecute crashes the process when the command for a given scheme
|
||||
// is empty. This function tells if it is.
|
||||
bool ValidateShellCommandForScheme(const std::string& scheme) {
|
||||
base::win::RegKey key;
|
||||
base::string16 registry_path =
|
||||
base::ASCIIToUTF16(scheme) + L"\\shell\\open\\command";
|
||||
key.Open(HKEY_CLASSES_ROOT, registry_path.c_str(), KEY_READ);
|
||||
if (!key.Valid())
|
||||
return false;
|
||||
DWORD size = 0;
|
||||
key.ReadValue(NULL, NULL, &size, NULL);
|
||||
if (size <= 2)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
// Required COM implementation of IFileOperationProgressSink so we can
|
||||
// precheck files before deletion to make sure they can be move to the
|
||||
// Recycle Bin.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue