| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/ui/webui/settings/settings_import_data_handler.h" | 5 #include "chrome/browser/ui/webui/settings/settings_import_data_handler.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| 11 | 11 |
| 12 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "base/bind_helpers.h" | 13 #include "base/bind_helpers.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
| 16 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
| 17 #include "base/strings/string_util.h" | 17 #include "base/strings/string_util.h" |
| 18 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
| 19 #include "base/threading/thread_restrictions.h" | 19 #include "base/threading/thread_restrictions.h" |
| 20 #include "base/values.h" | 20 #include "base/values.h" |
| 21 #include "chrome/browser/browser_process.h" | 21 #include "chrome/browser/browser_process.h" |
| 22 #include "chrome/browser/importer/external_process_importer_host.h" | 22 #include "chrome/browser/importer/external_process_importer_host.h" |
| 23 #include "chrome/browser/importer/importer_list.h" | 23 #include "chrome/browser/importer/importer_list.h" |
| 24 #include "chrome/browser/importer/importer_uma.h" | 24 #include "chrome/browser/importer/importer_uma.h" |
| 25 #include "chrome/browser/profiles/profile.h" | 25 #include "chrome/browser/profiles/profile.h" |
| 26 #include "chrome/browser/ui/browser_finder.h" | 26 #include "chrome/browser/ui/browser_finder.h" |
| 27 #include "chrome/browser/ui/browser_window.h" | 27 #include "chrome/browser/ui/browser_window.h" |
| 28 #include "chrome/browser/ui/chrome_select_file_policy.h" | 28 #include "chrome/browser/ui/chrome_select_file_policy.h" |
| 29 #include "chrome/common/pref_names.h" | 29 #include "chrome/common/pref_names.h" |
| 30 #include "chrome/grit/chromium_strings.h" | |
| 31 #include "chrome/grit/generated_resources.h" | |
| 32 #include "content/public/browser/browser_thread.h" | 30 #include "content/public/browser/browser_thread.h" |
| 33 #include "content/public/browser/web_ui.h" | 31 #include "content/public/browser/web_ui.h" |
| 34 | 32 |
| 35 using content::BrowserThread; | 33 using content::BrowserThread; |
| 36 | 34 |
| 37 namespace settings { | 35 namespace settings { |
| 38 | 36 |
| 39 namespace { | 37 namespace { |
| 40 const char kImportStatusInProgress[] = "inProgress"; | 38 const char kImportStatusInProgress[] = "inProgress"; |
| 41 const char kImportStatusSucceeded[] = "succeeded"; | 39 const char kImportStatusSucceeded[] = "succeeded"; |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 base::string16(), | 244 base::string16(), |
| 247 base::FilePath(), | 245 base::FilePath(), |
| 248 &file_type_info, | 246 &file_type_info, |
| 249 0, | 247 0, |
| 250 base::FilePath::StringType(), | 248 base::FilePath::StringType(), |
| 251 browser->window()->GetNativeWindow(), | 249 browser->window()->GetNativeWindow(), |
| 252 NULL); | 250 NULL); |
| 253 } | 251 } |
| 254 | 252 |
| 255 } // namespace settings | 253 } // namespace settings |
| OLD | NEW |