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

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

Issue 8760011: Move the ProcessType enum out to its own file. This is in preparation for getting rid of ChildPro... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac 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/metrics/tracking_synchronizer.h ('k') | chrome/browser/nacl_host/nacl_broker_host_win.cc » ('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 112315)
+++ chrome/browser/metrics/tracking_synchronizer.cc (working copy)
@@ -14,6 +14,7 @@
#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"
@@ -128,7 +129,7 @@
void TrackingSynchronizer::DeserializeTrackingList(
int sequence_number,
const std::string& tracking_data,
- ChildProcessInfo::ProcessType process_type) {
+ content::ProcessType process_type) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
@@ -141,7 +142,7 @@
void TrackingSynchronizer::DeserializeTrackingListOnUI(
int sequence_number,
const std::string& tracking_data,
- ChildProcessInfo::ProcessType process_type) {
+ content::ProcessType process_type) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
TrackingSynchronizer* current_synchronizer = CurrentSynchronizer();
@@ -194,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(ChildProcessInfo::BROWSER_PROCESS);
+ ChildProcessInfo::GetTypeNameInEnglish(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/metrics/tracking_synchronizer.h ('k') | chrome/browser/nacl_host/nacl_broker_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698