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

Unified Diff: chrome/renderer/chrome_content_renderer_client.cc

Issue 181373003: Link chrome_elf.dll instead of statically linking the blacklist code (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add header Created 6 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/chrome_browser.gypi ('k') | chrome_elf/blacklist.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/chrome_content_renderer_client.cc
diff --git a/chrome/renderer/chrome_content_renderer_client.cc b/chrome/renderer/chrome_content_renderer_client.cc
index 1ab1cc4852560656c4c473b1e607d295a3b131b2..e0a237b0304904dcb8c7d2e4c5e5fbef0cc8ddf4 100644
--- a/chrome/renderer/chrome_content_renderer_client.cc
+++ b/chrome/renderer/chrome_content_renderer_client.cc
@@ -365,12 +365,7 @@ void ChromeContentRendererClient::RenderThreadStarted() {
// Report if the renderer process has been patched by chrome_elf.
// TODO(csharp): Remove once the renderer is no longer getting
// patched this way.
- typedef bool(*IsBlacklistInitializedFunc)();
- IsBlacklistInitializedFunc is_blacklist_initialized =
- reinterpret_cast<IsBlacklistInitializedFunc>(
- GetProcAddress(GetModuleHandle(L"chrome_elf.dll"),
- "IsBlacklistInitialized"));
- if (is_blacklist_initialized && is_blacklist_initialized())
+ if (blacklist::IsBlacklistInitialized())
UMA_HISTOGRAM_BOOLEAN("Blacklist.PatchedInRenderer", true);
#endif
}
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | chrome_elf/blacklist.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698