| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/importer/profile_import_process_host.h" | 5 #include "chrome/browser/importer/profile_import_process_host.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "base/string_number_conversions.h" | 9 #include "base/string_number_conversions.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 localized_strings.SetString( | 47 localized_strings.SetString( |
| 48 base::IntToString(IDS_IMPORT_FROM_FIREFOX), | 48 base::IntToString(IDS_IMPORT_FROM_FIREFOX), |
| 49 l10n_util::GetStringUTF8(IDS_IMPORT_FROM_FIREFOX)); | 49 l10n_util::GetStringUTF8(IDS_IMPORT_FROM_FIREFOX)); |
| 50 localized_strings.SetString( | 50 localized_strings.SetString( |
| 51 base::IntToString(IDS_IMPORT_FROM_GOOGLE_TOOLBAR), | 51 base::IntToString(IDS_IMPORT_FROM_GOOGLE_TOOLBAR), |
| 52 l10n_util::GetStringUTF8(IDS_IMPORT_FROM_GOOGLE_TOOLBAR)); | 52 l10n_util::GetStringUTF8(IDS_IMPORT_FROM_GOOGLE_TOOLBAR)); |
| 53 localized_strings.SetString( | 53 localized_strings.SetString( |
| 54 base::IntToString(IDS_IMPORT_FROM_SAFARI), | 54 base::IntToString(IDS_IMPORT_FROM_SAFARI), |
| 55 l10n_util::GetStringUTF8(IDS_IMPORT_FROM_SAFARI)); | 55 l10n_util::GetStringUTF8(IDS_IMPORT_FROM_SAFARI)); |
| 56 localized_strings.SetString( | 56 localized_strings.SetString( |
| 57 base::IntToString(IDS_BOOMARK_BAR_FOLDER_NAME), | 57 base::IntToString(IDS_BOOKMARK_BAR_FOLDER_NAME), |
| 58 l10n_util::GetStringUTF8(IDS_BOOMARK_BAR_FOLDER_NAME)); | 58 l10n_util::GetStringUTF8(IDS_BOOKMARK_BAR_FOLDER_NAME)); |
| 59 | 59 |
| 60 Send(new ProfileImportProcessMsg_StartImport(source_profile, items, | 60 Send(new ProfileImportProcessMsg_StartImport(source_profile, items, |
| 61 localized_strings)); | 61 localized_strings)); |
| 62 return true; | 62 return true; |
| 63 } | 63 } |
| 64 | 64 |
| 65 bool ProfileImportProcessHost::CancelProfileImportProcess() { | 65 bool ProfileImportProcessHost::CancelProfileImportProcess() { |
| 66 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 66 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
| 67 Send(new ProfileImportProcessMsg_CancelImport()); | 67 Send(new ProfileImportProcessMsg_CancelImport()); |
| 68 return true; | 68 return true; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 BrowserThread::PostTask( | 140 BrowserThread::PostTask( |
| 141 thread_id_, FROM_HERE, | 141 thread_id_, FROM_HERE, |
| 142 NewRunnableMethod(import_process_client_.get(), | 142 NewRunnableMethod(import_process_client_.get(), |
| 143 &ProfileImportProcessClient::OnProcessCrashed, | 143 &ProfileImportProcessClient::OnProcessCrashed, |
| 144 exit_code)); | 144 exit_code)); |
| 145 } | 145 } |
| 146 | 146 |
| 147 bool ProfileImportProcessHost::CanShutdown() { | 147 bool ProfileImportProcessHost::CanShutdown() { |
| 148 return true; | 148 return true; |
| 149 } | 149 } |
| OLD | NEW |