OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/external_process_importer_client.h" | 5 #include "chrome/browser/importer/external_process_importer_client.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
10 #include "chrome/browser/importer/external_process_importer_host.h" | 10 #include "chrome/browser/importer/external_process_importer_host.h" |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 if (cancelled_) | 217 if (cancelled_) |
218 return; | 218 return; |
219 | 219 |
220 favicons_.insert(favicons_.end(), favicons_group.begin(), | 220 favicons_.insert(favicons_.end(), favicons_group.begin(), |
221 favicons_group.end()); | 221 favicons_group.end()); |
222 if (favicons_.size() == total_favicons_count_) | 222 if (favicons_.size() == total_favicons_count_) |
223 bridge_->SetFavicons(favicons_); | 223 bridge_->SetFavicons(favicons_); |
224 } | 224 } |
225 | 225 |
226 void ExternalProcessImporterClient::OnPasswordFormImportReady( | 226 void ExternalProcessImporterClient::OnPasswordFormImportReady( |
227 const content::PasswordForm& form) { | 227 const autofill::PasswordForm& form) { |
228 if (cancelled_) | 228 if (cancelled_) |
229 return; | 229 return; |
230 | 230 |
231 bridge_->SetPasswordForm(form); | 231 bridge_->SetPasswordForm(form); |
232 } | 232 } |
233 | 233 |
234 void ExternalProcessImporterClient::OnKeywordsImportReady( | 234 void ExternalProcessImporterClient::OnKeywordsImportReady( |
235 const std::vector<importer::URLKeywordInfo>& url_keywords, | 235 const std::vector<importer::URLKeywordInfo>& url_keywords, |
236 bool unique_on_host_and_path) { | 236 bool unique_on_host_and_path) { |
237 if (cancelled_) | 237 if (cancelled_) |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 localized_strings.SetString( | 313 localized_strings.SetString( |
314 base::IntToString(IDS_IMPORT_FROM_SAFARI), | 314 base::IntToString(IDS_IMPORT_FROM_SAFARI), |
315 l10n_util::GetStringUTF8(IDS_IMPORT_FROM_SAFARI)); | 315 l10n_util::GetStringUTF8(IDS_IMPORT_FROM_SAFARI)); |
316 localized_strings.SetString( | 316 localized_strings.SetString( |
317 base::IntToString(IDS_BOOKMARK_BAR_FOLDER_NAME), | 317 base::IntToString(IDS_BOOKMARK_BAR_FOLDER_NAME), |
318 l10n_util::GetStringUTF8(IDS_BOOKMARK_BAR_FOLDER_NAME)); | 318 l10n_util::GetStringUTF8(IDS_BOOKMARK_BAR_FOLDER_NAME)); |
319 | 319 |
320 utility_process_host_->Send(new ProfileImportProcessMsg_StartImport( | 320 utility_process_host_->Send(new ProfileImportProcessMsg_StartImport( |
321 source_profile_, items_, localized_strings)); | 321 source_profile_, items_, localized_strings)); |
322 } | 322 } |
OLD | NEW |