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

Unified Diff: chrome/renderer/pepper/pepper_uma_host.cc

Issue 901863002: Revert of Fix the histograms whitelist for the OOP PDF plugin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/pepper/pepper_uma_host.cc
diff --git a/chrome/renderer/pepper/pepper_uma_host.cc b/chrome/renderer/pepper/pepper_uma_host.cc
index 693c4977a0a9c3c3492e68520627a2cd68511e15..dc580e3ecd0010ed5c860e2e51cce8184243bcb1 100644
--- a/chrome/renderer/pepper/pepper_uma_host.cc
+++ b/chrome/renderer/pepper/pepper_uma_host.cc
@@ -7,7 +7,6 @@
#include "base/metrics/histogram.h"
#include "base/sha1.h"
#include "base/strings/string_number_conversions.h"
-#include "chrome/common/chrome_content_client.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/render_messages.h"
#include "chrome/renderer/chrome_content_renderer_client.h"
@@ -31,11 +30,11 @@
const char* const kPredefinedAllowedUMAOrigins[] = {
"6EAED1924DB611B6EEF2A664BD077BE7EAD33B8F", // see http://crbug.com/317833
- "4EB74897CB187C7633357C2FE832E0AD6A44883A", // see http://crbug.com/317833
+ "4EB74897CB187C7633357C2FE832E0AD6A44883A" // see http://crbug.com/317833
};
const char* const kWhitelistedHistogramPrefixes[] = {
- "22F67DA2061FFC4DC9A4974036348D9C38C22919", // see http://crbug.com/390221
+ "22F67DA2061FFC4DC9A4974036348D9C38C22919" // see http://crbug.com/390221
};
const char* const kWhitelistedPluginBaseNames[] = {
@@ -43,7 +42,7 @@
kWidevineCdmAdapterFileName, // see http://crbug.com/368743
// and http://crbug.com/410630
#endif
- ChromeContentClient::kPDFPluginPath,
+ "libpdf.so" // see http://crbug.com/405305
};
std::string HashPrefix(const std::string& histogram) {
@@ -107,12 +106,13 @@
}
if (IsPluginWhitelisted() &&
- ContainsKey(allowed_histogram_prefixes_, HashPrefix(histogram))) {
+ allowed_histogram_prefixes_.find(HashPrefix(histogram)) !=
+ allowed_histogram_prefixes_.end()) {
return true;
}
- if (ContainsKey(allowed_plugin_base_names_,
- plugin_base_name_.MaybeAsASCII())) {
+ if (allowed_plugin_base_names_.find(plugin_base_name_.MaybeAsASCII()) !=
+ allowed_plugin_base_names_.end()) {
return true;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698