OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_path.h" | 10 #include "base/file_path.h" |
11 #include "base/file_util.h" | 11 #include "base/file_util.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-inl.h" | 15 #include "base/stl_util.h" |
16 #include "base/string_number_conversions.h" | 16 #include "base/string_number_conversions.h" |
17 #include "base/string_split.h" | 17 #include "base/string_split.h" |
18 #include "base/string_util.h" | 18 #include "base/string_util.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" |
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
668 | 668 |
669 // We need to make up a URL for the favicon. We use a version of the page's | 669 // We need to make up a URL for the favicon. We use a version of the page's |
670 // URL so that we can be sure it will not collide. | 670 // URL so that we can be sure it will not collide. |
671 usage.favicon_url = GURL(std::string("made-up-favicon:") + link_url.spec()); | 671 usage.favicon_url = GURL(std::string("made-up-favicon:") + link_url.spec()); |
672 | 672 |
673 // We only have one URL per favicon for Firefox 2 bookmarks. | 673 // We only have one URL per favicon for Firefox 2 bookmarks. |
674 usage.urls.insert(link_url); | 674 usage.urls.insert(link_url); |
675 | 675 |
676 favicons->push_back(usage); | 676 favicons->push_back(usage); |
677 } | 677 } |
OLD | NEW |