5 ms·
Why would they check if Adblock is installed or not? https://code.google.com/p/chromium/codesearch#chromium/src/chrome/renderer/chrome_content_renderer_client.
by hidamon 13y ago
Why would they check if Adblock is installed or not?
https://code.google.com/p/chromium/codesearch#chromium/src/chrome/renderer/chrome_content_renderer_client.cc&l=1261 https://code.google.com/p/chromium/codesearch#chromium/src/c...
bool ChromeContentRendererClient::IsAdblockInstalled() {
return g_current_client->extension_dispatcher_->extensions()->Contains(
"gighmmpiobklfepjocnamgkkbiglidom");
}
bool ChromeContentRendererClient::IsAdblockPlusInstalled() {
return g_current_client->extension_dispatcher_->extensions()->Contains(
"cfhdojbkjhnklbpkdaibdccddilifddb");
}
- elq 13y agoThey were apparently trying to understand performance issues with adblock, so they can fix them... // TODO(mpcomplete): remove the extension-related histograms after we collect // enough data. http://crbug.com/100411 const bool use_adblock_histogram = ChromeContentRendererClient::IsAdblockInstalled(); https://code.google.com/p/chromium/issues/detail?id=100411 https://code.google.com/p/chromium/issues/detail?id=100411