| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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-inl.h" |
| 16 #include "base/string_split.h" |
| 16 #include "base/string_util.h" | 17 #include "base/string_util.h" |
| 17 #include "base/string_number_conversions.h" | 18 #include "base/string_number_conversions.h" |
| 18 #include "base/utf_string_conversions.h" | 19 #include "base/utf_string_conversions.h" |
| 19 #include "base/values.h" | 20 #include "base/values.h" |
| 20 #include "chrome/browser/history/history_types.h" | 21 #include "chrome/browser/history/history_types.h" |
| 21 #include "chrome/browser/importer/firefox_importer_utils.h" | 22 #include "chrome/browser/importer/firefox_importer_utils.h" |
| 22 #include "chrome/browser/importer/importer_bridge.h" | 23 #include "chrome/browser/importer/importer_bridge.h" |
| 23 #include "chrome/browser/importer/importer_data_types.h" | 24 #include "chrome/browser/importer/importer_data_types.h" |
| 24 #include "chrome/browser/importer/mork_reader.h" | 25 #include "chrome/browser/importer/mork_reader.h" |
| 25 #include "chrome/browser/importer/nss_decryptor.h" | 26 #include "chrome/browser/importer/nss_decryptor.h" |
| (...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 581 | 582 |
| 582 // We need to make up a URL for the favicon. We use a version of the page's | 583 // We need to make up a URL for the favicon. We use a version of the page's |
| 583 // URL so that we can be sure it will not collide. | 584 // URL so that we can be sure it will not collide. |
| 584 usage.favicon_url = GURL(std::string("made-up-favicon:") + link_url.spec()); | 585 usage.favicon_url = GURL(std::string("made-up-favicon:") + link_url.spec()); |
| 585 | 586 |
| 586 // We only have one URL per favicon for Firefox 2 bookmarks. | 587 // We only have one URL per favicon for Firefox 2 bookmarks. |
| 587 usage.urls.insert(link_url); | 588 usage.urls.insert(link_url); |
| 588 | 589 |
| 589 favicons->push_back(usage); | 590 favicons->push_back(usage); |
| 590 } | 591 } |
| OLD | NEW |