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

Unified Diff: chrome/browser/importer/external_process_importer_client.h

Issue 9235052: Fix race condition in utility process clients (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to ToT Created 8 years, 11 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
Index: chrome/browser/importer/external_process_importer_client.h
diff --git a/chrome/browser/importer/external_process_importer_client.h b/chrome/browser/importer/external_process_importer_client.h
index 6d31cbe8f4ff2eb00a497ea7f7049bf065cdae96..dbdf14c3feaf8216a8bbc4316d30681aeeca327c 100644
--- a/chrome/browser/importer/external_process_importer_client.h
+++ b/chrome/browser/importer/external_process_importer_client.h
@@ -109,8 +109,9 @@ class ExternalProcessImporterClient : public UtilityProcessHost::Client {
ExternalProcessImporterHost* process_importer_host_;
// Handles sending messages to the external process. Deletes itself when
- // the external process dies (see ChildProcessHost::OnChildDied).
- UtilityProcessHost* utility_process_host_;
+ // the external process dies (see
+ // BrowserChildProcessHost::OnChildDisconnected).
+ base::WeakPtr<UtilityProcessHost> utility_process_host_;
// Data to be passed from the importer host to the external importer.
const importer::SourceProfile& source_profile_;
« no previous file with comments | « chrome/browser/extensions/webstore_install_helper.cc ('k') | chrome/browser/importer/external_process_importer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698