| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <stddef.h> |
| 6 |
| 5 #include <vector> | 7 #include <vector> |
| 6 | 8 |
| 7 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
| 8 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
| 11 #include "base/macros.h" |
| 9 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
| 10 #include "base/path_service.h" | 13 #include "base/path_service.h" |
| 11 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
| 12 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
| 13 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
| 14 #include "base/win/registry.h" | 17 #include "base/win/registry.h" |
| 15 #include "base/win/windows_version.h" | 18 #include "base/win/windows_version.h" |
| 16 #include "chrome/browser/importer/external_process_importer_host.h" | 19 #include "chrome/browser/importer/external_process_importer_host.h" |
| 17 #include "chrome/browser/importer/importer_progress_observer.h" | 20 #include "chrome/browser/importer/importer_progress_observer.h" |
| 18 #include "chrome/browser/importer/importer_unittest_utils.h" | 21 #include "chrome/browser/importer/importer_unittest_utils.h" |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 host->set_observer(observer.get()); | 289 host->set_observer(observer.get()); |
| 287 | 290 |
| 288 importer::SourceProfile source_profile; | 291 importer::SourceProfile source_profile; |
| 289 source_profile.importer_type = importer::TYPE_EDGE; | 292 source_profile.importer_type = importer::TYPE_EDGE; |
| 290 source_profile.source_path = temp_dir_.path(); | 293 source_profile.source_path = temp_dir_.path(); |
| 291 | 294 |
| 292 host->StartImportSettings(source_profile, browser()->profile(), | 295 host->StartImportSettings(source_profile, browser()->profile(), |
| 293 importer::FAVORITES, observer.get()); | 296 importer::FAVORITES, observer.get()); |
| 294 base::MessageLoop::current()->Run(); | 297 base::MessageLoop::current()->Run(); |
| 295 } | 298 } |
| OLD | NEW |