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

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

Issue 243433002: Move resources to components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@364870.base
Patch Set: Fix rebase Created 6 years, 8 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
« no previous file with comments | « chrome/browser/bookmarks/bookmark_model.cc ('k') | chrome/chrome.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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"
11 #include "chrome/browser/importer/in_process_importer_bridge.h" 11 #include "chrome/browser/importer/in_process_importer_bridge.h"
12 #include "chrome/common/importer/firefox_importer_utils.h" 12 #include "chrome/common/importer/firefox_importer_utils.h"
13 #include "chrome/common/importer/imported_bookmark_entry.h" 13 #include "chrome/common/importer/imported_bookmark_entry.h"
14 #include "chrome/common/importer/profile_import_process_messages.h" 14 #include "chrome/common/importer/profile_import_process_messages.h"
15 #include "content/public/browser/browser_thread.h" 15 #include "content/public/browser/browser_thread.h"
16 #include "content/public/browser/utility_process_host.h" 16 #include "content/public/browser/utility_process_host.h"
17 #include "grit/component_strings.h"
17 #include "grit/generated_resources.h" 18 #include "grit/generated_resources.h"
18 #include "ui/base/l10n/l10n_util.h" 19 #include "ui/base/l10n/l10n_util.h"
19 20
20 using content::BrowserThread; 21 using content::BrowserThread;
21 using content::UtilityProcessHost; 22 using content::UtilityProcessHost;
22 23
23 ExternalProcessImporterClient::ExternalProcessImporterClient( 24 ExternalProcessImporterClient::ExternalProcessImporterClient(
24 base::WeakPtr<ExternalProcessImporterHost> importer_host, 25 base::WeakPtr<ExternalProcessImporterHost> importer_host,
25 const importer::SourceProfile& source_profile, 26 const importer::SourceProfile& source_profile,
26 uint16 items, 27 uint16 items,
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 localized_strings.SetString( 317 localized_strings.SetString(
317 base::IntToString(IDS_IMPORT_FROM_SAFARI), 318 base::IntToString(IDS_IMPORT_FROM_SAFARI),
318 l10n_util::GetStringUTF8(IDS_IMPORT_FROM_SAFARI)); 319 l10n_util::GetStringUTF8(IDS_IMPORT_FROM_SAFARI));
319 localized_strings.SetString( 320 localized_strings.SetString(
320 base::IntToString(IDS_BOOKMARK_BAR_FOLDER_NAME), 321 base::IntToString(IDS_BOOKMARK_BAR_FOLDER_NAME),
321 l10n_util::GetStringUTF8(IDS_BOOKMARK_BAR_FOLDER_NAME)); 322 l10n_util::GetStringUTF8(IDS_BOOKMARK_BAR_FOLDER_NAME));
322 323
323 utility_process_host_->Send(new ProfileImportProcessMsg_StartImport( 324 utility_process_host_->Send(new ProfileImportProcessMsg_StartImport(
324 source_profile_, items_, localized_strings)); 325 source_profile_, items_, localized_strings));
325 } 326 }
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_model.cc ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698