diff options
Diffstat (limited to 'chrome/browser/profile_import_process_host.cc')
-rw-r--r-- | chrome/browser/profile_import_process_host.cc | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/chrome/browser/profile_import_process_host.cc b/chrome/browser/profile_import_process_host.cc index 26e4ec1..3663ef7 100644 --- a/chrome/browser/profile_import_process_host.cc +++ b/chrome/browser/profile_import_process_host.cc @@ -118,39 +118,36 @@ bool ProfileImportProcessHost::StartProcess() { return true; } -void ProfileImportProcessHost::OnMessageReceived(const IPC::Message& message) { +bool ProfileImportProcessHost::OnMessageReceived(const IPC::Message& message) { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); BrowserThread::PostTask( thread_id_, FROM_HERE, NewRunnableMethod(import_process_client_.get(), &ImportProcessClient::OnMessageReceived, message)); + return true; } -void ProfileImportProcessHost::OnProcessCrashed() { +void ProfileImportProcessHost::OnProcessCrashed(int exit_code) { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); BrowserThread::PostTask( thread_id_, FROM_HERE, NewRunnableMethod(import_process_client_.get(), - &ImportProcessClient::OnProcessCrashed)); + &ImportProcessClient::OnProcessCrashed, + exit_code)); } bool ProfileImportProcessHost::CanShutdown() { return true; } -URLRequestContext* ProfileImportProcessHost::GetRequestContext( - uint32 request_id, - const ViewHostMsg_Resource_Request& request_data) { - return NULL; -} - ProfileImportProcessHost::ImportProcessClient::ImportProcessClient() {} ProfileImportProcessHost::ImportProcessClient::~ImportProcessClient() {} -void ProfileImportProcessHost::ImportProcessClient::OnMessageReceived( +bool ProfileImportProcessHost::ImportProcessClient::OnMessageReceived( const IPC::Message& message) { + bool handled = true; IPC_BEGIN_MESSAGE_MAP(ProfileImportProcessHost, message) // Notification messages about the state of the import process. IPC_MESSAGE_HANDLER(ProfileImportProcessHostMsg_Import_Started, @@ -181,5 +178,7 @@ void ProfileImportProcessHost::ImportProcessClient::OnMessageReceived( ImportProcessClient::OnPasswordFormImportReady) IPC_MESSAGE_HANDLER(ProfileImportProcessHostMsg_NotifyKeywordsReady, ImportProcessClient::OnKeywordsImportReady) + IPC_MESSAGE_UNHANDLED(handled = false) IPC_END_MESSAGE_MAP_EX() + return handled; } |