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

Unified Diff: chrome_elf/blacklist/blacklist.cc

Issue 346763003: Adding blacklisted dlls to safe browsing incident reports. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@updatedWard2
Patch Set: Created 6 years, 6 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
Index: chrome_elf/blacklist/blacklist.cc
diff --git a/chrome_elf/blacklist/blacklist.cc b/chrome_elf/blacklist/blacklist.cc
index 8107ffcab39abeaebde41f90c73a90beefc36ac4..fced32dcd0034ecf976c9946c154d053ebfd9e8d 100644
--- a/chrome_elf/blacklist/blacklist.cc
+++ b/chrome_elf/blacklist/blacklist.cc
@@ -371,7 +371,7 @@ bool AddDllsFromRegistryToBlacklist() {
if (result != ERROR_SUCCESS)
return false;
- // We add dlls from the registry to the blacklist, and then clear registry.
+ // We add dlls from the registry to the blacklist.
DWORD value_len;
DWORD name_len = MAX_PATH;
std::vector<wchar_t> name_buffer(name_len);
@@ -393,10 +393,7 @@ bool AddDllsFromRegistryToBlacklist() {
}
}
- // Delete the finch registry key to clear the values.
- result = ::RegDeleteKey(key, L"");
-
- ::RegCloseKey(key);
+ result = ::RegCloseKey(key);
return result == ERROR_SUCCESS;
grt (UTC plus 2) 2014/06/19 20:06:59 i don't understand the return value from this func
krstnmnlsn 2014/06/19 22:13:15 The return value is used by blacklist_test.cc. The
grt (UTC plus 2) 2014/06/20 14:40:59 since the return value isn't used by the productio
krstnmnlsn 2014/06/20 18:02:58 Okay I'll do that.
}

Powered by Google App Engine
This is Rietveld 408576698