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

Side by Side Diff: chrome/browser/importer/external_process_importer_client.cc

Issue 11000016: Move forms/ out of webkit/. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Response to review Created 8 years, 2 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 unified diff | Download patch
OLDNEW
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/string_number_conversions.h" 8 #include "base/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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 if (cancelled_) 212 if (cancelled_)
213 return; 213 return;
214 214
215 favicons_.insert(favicons_.end(), favicons_group.begin(), 215 favicons_.insert(favicons_.end(), favicons_group.begin(),
216 favicons_group.end()); 216 favicons_group.end());
217 if (favicons_.size() == total_favicons_count_) 217 if (favicons_.size() == total_favicons_count_)
218 bridge_->SetFavicons(favicons_); 218 bridge_->SetFavicons(favicons_);
219 } 219 }
220 220
221 void ExternalProcessImporterClient::OnPasswordFormImportReady( 221 void ExternalProcessImporterClient::OnPasswordFormImportReady(
222 const webkit::forms::PasswordForm& form) { 222 const content::PasswordForm& form) {
223 if (cancelled_) 223 if (cancelled_)
224 return; 224 return;
225 225
226 bridge_->SetPasswordForm(form); 226 bridge_->SetPasswordForm(form);
227 } 227 }
228 228
229 void ExternalProcessImporterClient::OnKeywordsImportReady( 229 void ExternalProcessImporterClient::OnKeywordsImportReady(
230 const std::vector<TemplateURL*>& template_urls, 230 const std::vector<TemplateURL*>& template_urls,
231 bool unique_on_host_and_path) { 231 bool unique_on_host_and_path) {
232 if (cancelled_) 232 if (cancelled_)
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 localized_strings.SetString( 290 localized_strings.SetString(
291 base::IntToString(IDS_IMPORT_FROM_SAFARI), 291 base::IntToString(IDS_IMPORT_FROM_SAFARI),
292 l10n_util::GetStringUTF8(IDS_IMPORT_FROM_SAFARI)); 292 l10n_util::GetStringUTF8(IDS_IMPORT_FROM_SAFARI));
293 localized_strings.SetString( 293 localized_strings.SetString(
294 base::IntToString(IDS_BOOKMARK_BAR_FOLDER_NAME), 294 base::IntToString(IDS_BOOKMARK_BAR_FOLDER_NAME),
295 l10n_util::GetStringUTF8(IDS_BOOKMARK_BAR_FOLDER_NAME)); 295 l10n_util::GetStringUTF8(IDS_BOOKMARK_BAR_FOLDER_NAME));
296 296
297 utility_process_host_->Send(new ProfileImportProcessMsg_StartImport( 297 utility_process_host_->Send(new ProfileImportProcessMsg_StartImport(
298 source_profile_, items_, localized_strings)); 298 source_profile_, items_, localized_strings));
299 } 299 }
OLDNEW
« no previous file with comments | « chrome/browser/importer/external_process_importer_client.h ('k') | chrome/browser/importer/firefox2_importer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698