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 <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/memory/ptr_util.h" |
10 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
11 #include "build/build_config.h" | 12 #include "build/build_config.h" |
12 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
13 #include "chrome/browser/importer/external_process_importer_host.h" | 14 #include "chrome/browser/importer/external_process_importer_host.h" |
14 #include "chrome/browser/importer/in_process_importer_bridge.h" | 15 #include "chrome/browser/importer/in_process_importer_bridge.h" |
15 #include "chrome/common/importer/firefox_importer_utils.h" | 16 #include "chrome/common/importer/firefox_importer_utils.h" |
16 #include "chrome/common/importer/imported_bookmark_entry.h" | 17 #include "chrome/common/importer/imported_bookmark_entry.h" |
17 #include "chrome/grit/generated_resources.h" | 18 #include "chrome/grit/generated_resources.h" |
18 #include "components/strings/grit/components_strings.h" | 19 #include "components/strings/grit/components_strings.h" |
19 #include "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 utility_process_host_->Start(); | 311 utility_process_host_->Start(); |
311 chrome::mojom::ProfileImportPtr profile_import; | 312 chrome::mojom::ProfileImportPtr profile_import; |
312 utility_process_host_->GetRemoteInterfaces()->GetInterface( | 313 utility_process_host_->GetRemoteInterfaces()->GetInterface( |
313 std::move(request)); | 314 std::move(request)); |
314 } | 315 } |
315 | 316 |
316 void ExternalProcessImporterClient::CloseMojoHandles() { | 317 void ExternalProcessImporterClient::CloseMojoHandles() { |
317 profile_import_.reset(); | 318 profile_import_.reset(); |
318 binding_.Close(); | 319 binding_.Close(); |
319 } | 320 } |
OLD | NEW |