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/ui/webui/options/import_data_handler.h" | 5 #include "chrome/browser/ui/webui/options/import_data_handler.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
14 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
15 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
16 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
17 #include "base/threading/thread_restrictions.h" | 17 #include "base/threading/thread_restrictions.h" |
18 #include "base/values.h" | 18 #include "base/values.h" |
19 #include "chrome/browser/browser_process.h" | 19 #include "chrome/browser/browser_process.h" |
20 #include "chrome/browser/importer/external_process_importer_host.h" | 20 #include "chrome/browser/importer/external_process_importer_host.h" |
21 #include "chrome/browser/importer/importer_creator.h" | |
22 #include "chrome/browser/importer/importer_list.h" | 21 #include "chrome/browser/importer/importer_list.h" |
| 22 #include "chrome/browser/importer/importer_uma.h" |
23 #include "chrome/browser/profiles/profile.h" | 23 #include "chrome/browser/profiles/profile.h" |
24 #include "chrome/browser/ui/browser_finder.h" | 24 #include "chrome/browser/ui/browser_finder.h" |
25 #include "content/public/browser/web_ui.h" | 25 #include "content/public/browser/web_ui.h" |
26 #include "grit/chromium_strings.h" | 26 #include "grit/chromium_strings.h" |
27 #include "grit/generated_resources.h" | 27 #include "grit/generated_resources.h" |
28 #include "ui/base/l10n/l10n_util.h" | 28 #include "ui/base/l10n/l10n_util.h" |
29 | 29 |
30 namespace options { | 30 namespace options { |
31 | 31 |
32 ImportDataHandler::ImportDataHandler() : importer_host_(NULL), | 32 ImportDataHandler::ImportDataHandler() : importer_host_(NULL), |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 web_ui()->CallJavascriptFunction("ImportDataOverlay.confirmSuccess"); | 177 web_ui()->CallJavascriptFunction("ImportDataOverlay.confirmSuccess"); |
178 } else { | 178 } else { |
179 base::FundamentalValue state(false); | 179 base::FundamentalValue state(false); |
180 web_ui()->CallJavascriptFunction("ImportDataOverlay.setImportingState", | 180 web_ui()->CallJavascriptFunction("ImportDataOverlay.setImportingState", |
181 state); | 181 state); |
182 web_ui()->CallJavascriptFunction("ImportDataOverlay.dismiss"); | 182 web_ui()->CallJavascriptFunction("ImportDataOverlay.dismiss"); |
183 } | 183 } |
184 } | 184 } |
185 | 185 |
186 } // namespace options | 186 } // namespace options |
OLD | NEW |