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

Unified Diff: chrome/browser/metrics/tracking_synchronizer.cc

Issue 8757014: Move GetProcessTypeNameInEnglish beside the ProcessType enum where it belongs. This also helps re... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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/browser/memory_details.cc ('k') | content/common/child_process_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/tracking_synchronizer.cc
===================================================================
--- chrome/browser/metrics/tracking_synchronizer.cc (revision 112374)
+++ chrome/browser/metrics/tracking_synchronizer.cc (working copy)
@@ -14,9 +14,9 @@
#include "chrome/browser/ui/webui/tracing_ui.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/common/render_messages.h"
-#include "content/common/child_process_info.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/render_process_host.h"
+#include "content/public/common/process_type.h"
using base::TimeTicks;
using content::BrowserThread;
@@ -155,7 +155,7 @@
base::DictionaryValue* dictionary_value =
static_cast<DictionaryValue*>(value);
dictionary_value->SetString(
- "process_type", ChildProcessInfo::GetTypeNameInEnglish(process_type));
+ "process_type", content::GetProcessTypeNameInEnglish(process_type));
current_synchronizer->DecrementPendingProcessesAndSendData(
sequence_number, dictionary_value);
@@ -195,7 +195,7 @@
// Get the ThreadData for the browser process and send it back.
base::DictionaryValue* value = tracked_objects::ThreadData::ToValue();
const std::string process_type =
- ChildProcessInfo::GetTypeNameInEnglish(content::PROCESS_TYPE_BROWSER);
+ content::GetProcessTypeNameInEnglish(content::PROCESS_TYPE_BROWSER);
value->SetString("process_type", process_type);
value->SetInteger("process_id", base::GetCurrentProcId());
DCHECK_GT(request->processes_pending_, 0);
« no previous file with comments | « chrome/browser/memory_details.cc ('k') | content/common/child_process_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698