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

Unified Diff: chrome_elf/blacklist/blacklist.cc

Issue 140763008: Add a UMA stat to track if the Browser blacklist is Set on the Renderer (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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
Index: chrome_elf/blacklist/blacklist.cc
diff --git a/chrome_elf/blacklist/blacklist.cc b/chrome_elf/blacklist/blacklist.cc
index f9eb065dd5ae32f2c42f98621cf6d766808feb77..5b66903fcb9e8698b7c5087e67aa114322e51664 100644
--- a/chrome_elf/blacklist/blacklist.cc
+++ b/chrome_elf/blacklist/blacklist.cc
@@ -29,6 +29,8 @@ const wchar_t kRegistryBeaconPath[] = L"SOFTWARE\\Google\\Chrome\\BLBeacon";
const wchar_t kBeaconVersion[] = L"version";
const wchar_t kBeaconState[] = L"state";
+bool blacklist_patched = false;
robertshield 2014/02/06 18:55:23 g_blacklist_patched
csharp 2014/02/06 20:03:58 Done.
+
} // namespace blacklist
// Allocate storage for thunks in a page of this module to save on doing
@@ -324,6 +326,9 @@ bool Initialize(bool force) {
}
#endif
+ // Record that we have patched in the blacklist.
+ blacklist_patched = true;
+
BYTE* thunk_storage = reinterpret_cast<BYTE*>(&g_thunk_storage);
// Mark the thunk storage as readable and writeable, since we

Powered by Google App Engine
This is Rietveld 408576698