| Index: components/browser_watcher/postmortem_report_extractor.cc
|
| diff --git a/components/browser_watcher/postmortem_report_extractor.cc b/components/browser_watcher/postmortem_report_extractor.cc
|
| index bd12a9a03b4b87f9892195c6a3806bd1d6fce629..c5f2b3c42047453d0f3cfc7528a318f98393d6ac 100644
|
| --- a/components/browser_watcher/postmortem_report_extractor.cc
|
| +++ b/components/browser_watcher/postmortem_report_extractor.cc
|
| @@ -216,8 +216,13 @@ CollectionStatus Extract(const base::FilePath& stability_file,
|
| // Early exit if there is no data.
|
| std::vector<std::string> log_messages = global_analyzer->GetLogMessages();
|
| ActivityUserData::Snapshot global_data_snapshot =
|
| - global_analyzer->GetGlobalUserDataSnapshot();
|
| - ThreadActivityAnalyzer* thread_analyzer = global_analyzer->GetFirstAnalyzer();
|
| + global_analyzer->GetGlobalDataSnapshot();
|
| +
|
| + // Extract data for only the first process.
|
| + // TODO(manzagop): Extend this to all processes.
|
| + int64_t pid = global_analyzer->GetFirstProcess();
|
| + ThreadActivityAnalyzer* thread_analyzer =
|
| + global_analyzer->GetFirstAnalyzer(pid);
|
| if (log_messages.empty() && global_data_snapshot.empty() &&
|
| !thread_analyzer) {
|
| return DEBUG_FILE_NO_DATA;
|
|
|