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/firefox2_importer.h" | 5 #include "chrome/browser/importer/firefox2_importer.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/i18n/icu_string_conversions.h" | 12 #include "base/i18n/icu_string_conversions.h" |
13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
14 #include "base/path_service.h" | 14 #include "base/path_service.h" |
15 #include "base/stl_util.h" | 15 #include "base/stl_util.h" |
16 #include "base/string_split.h" | |
17 #include "base/string_util.h" | 16 #include "base/string_util.h" |
18 #include "base/strings/string_number_conversions.h" | 17 #include "base/strings/string_number_conversions.h" |
| 18 #include "base/strings/string_split.h" |
19 #include "base/utf_string_conversions.h" | 19 #include "base/utf_string_conversions.h" |
20 #include "chrome/browser/history/history_types.h" | 20 #include "chrome/browser/history/history_types.h" |
21 #include "chrome/browser/importer/firefox_importer_utils.h" | 21 #include "chrome/browser/importer/firefox_importer_utils.h" |
22 #include "chrome/browser/importer/importer_bridge.h" | 22 #include "chrome/browser/importer/importer_bridge.h" |
23 #include "chrome/browser/importer/importer_util.h" | 23 #include "chrome/browser/importer/importer_util.h" |
24 #include "chrome/browser/importer/mork_reader.h" | 24 #include "chrome/browser/importer/mork_reader.h" |
25 #include "chrome/browser/importer/nss_decryptor.h" | 25 #include "chrome/browser/importer/nss_decryptor.h" |
26 #include "chrome/browser/search_engines/template_url.h" | 26 #include "chrome/browser/search_engines/template_url.h" |
27 #include "chrome/common/time_format.h" | 27 #include "chrome/common/time_format.h" |
28 #include "chrome/common/url_constants.h" | 28 #include "chrome/common/url_constants.h" |
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
657 | 657 |
658 // We need to make up a URL for the favicon. We use a version of the page's | 658 // We need to make up a URL for the favicon. We use a version of the page's |
659 // URL so that we can be sure it will not collide. | 659 // URL so that we can be sure it will not collide. |
660 usage.favicon_url = GURL(std::string("made-up-favicon:") + link_url.spec()); | 660 usage.favicon_url = GURL(std::string("made-up-favicon:") + link_url.spec()); |
661 | 661 |
662 // We only have one URL per favicon for Firefox 2 bookmarks. | 662 // We only have one URL per favicon for Firefox 2 bookmarks. |
663 usage.urls.insert(link_url); | 663 usage.urls.insert(link_url); |
664 | 664 |
665 favicons->push_back(usage); | 665 favicons->push_back(usage); |
666 } | 666 } |
OLD | NEW |