From a27a938d8511abfaf89d6e2d0e4d4242c76dffed Mon Sep 17 00:00:00 2001 From: "jam@chromium.org" Date: Wed, 11 Feb 2009 23:55:10 +0000 Subject: Refactor plugin process code in the browser process so that the browser/about:memory/task manager/metrics code doesn't depend on PluginProcessHost pointers. In a future changelist I'll add one central child process registry in the browser process. Review URL: http://codereview.chromium.org/20196 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9621 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/metrics/metrics_log.cc | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'chrome/browser/metrics/metrics_log.cc') diff --git a/chrome/browser/metrics/metrics_log.cc b/chrome/browser/metrics/metrics_log.cc index 3603e0c..27cb88e 100644 --- a/chrome/browser/metrics/metrics_log.cc +++ b/chrome/browser/metrics/metrics_log.cc @@ -382,16 +382,13 @@ void MetricsLog::WritePluginStabilityElements(PrefService* pref) { } DictionaryValue* plugin_dict = static_cast(*iter); - std::wstring plugin_path; - plugin_dict->GetString(prefs::kStabilityPluginPath, &plugin_path); - plugin_path = file_util::GetFilenameFromPath(plugin_path); - if (plugin_path.empty()) { - NOTREACHED(); - continue; - } + std::wstring plugin_name; + plugin_dict->GetString(prefs::kStabilityPluginName, &plugin_name); OPEN_ELEMENT_FOR_SCOPE("pluginstability"); - WriteAttribute("filename", CreateBase64Hash(WideToUTF8(plugin_path))); + // Use "filename" instead of "name", otherwise we need to update the + // UMA servers. + WriteAttribute("filename", CreateBase64Hash(WideToUTF8(plugin_name))); int launches = 0; plugin_dict->GetInteger(prefs::kStabilityPluginLaunches, &launches); -- cgit v1.1