| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| 11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
| 12 #include "base/stl_util-inl.h" | 12 #include "base/stl_util-inl.h" |
| 13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
| 14 #include "base/values.h" | 14 #include "base/values.h" |
| 15 #include "chrome/browser/importer/firefox_importer_utils.h" | 15 #include "chrome/browser/importer/firefox_importer_utils.h" |
| 16 #include "chrome/browser/importer/mork_reader.h" | 16 #include "chrome/browser/importer/mork_reader.h" |
| 17 #include "chrome/browser/importer/nss_decryptor.h" |
| 17 #include "chrome/browser/search_engines/template_url.h" | 18 #include "chrome/browser/search_engines/template_url.h" |
| 18 #include "chrome/browser/search_engines/template_url_parser.h" | 19 #include "chrome/browser/search_engines/template_url_parser.h" |
| 19 #include "chrome/common/time_format.h" | 20 #include "chrome/common/time_format.h" |
| 20 #include "chrome/common/url_constants.h" | 21 #include "chrome/common/url_constants.h" |
| 21 #include "grit/generated_resources.h" | 22 #include "grit/generated_resources.h" |
| 22 #include "net/base/data_url.h" | 23 #include "net/base/data_url.h" |
| 23 #include "webkit/glue/password_form.h" | 24 #include "webkit/glue/password_form.h" |
| 24 | 25 |
| 25 using base::Time; | 26 using base::Time; |
| 26 using webkit_glue::PasswordForm; | 27 using webkit_glue::PasswordForm; |
| (...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 569 | 570 |
| 570 // We need to make up a URL for the favicon. We use a version of the page's | 571 // We need to make up a URL for the favicon. We use a version of the page's |
| 571 // URL so that we can be sure it will not collide. | 572 // URL so that we can be sure it will not collide. |
| 572 usage.favicon_url = GURL(std::string("made-up-favicon:") + link_url.spec()); | 573 usage.favicon_url = GURL(std::string("made-up-favicon:") + link_url.spec()); |
| 573 | 574 |
| 574 // We only have one URL per favicon for Firefox 2 bookmarks. | 575 // We only have one URL per favicon for Firefox 2 bookmarks. |
| 575 usage.urls.insert(link_url); | 576 usage.urls.insert(link_url); |
| 576 | 577 |
| 577 favicons->push_back(usage); | 578 favicons->push_back(usage); |
| 578 } | 579 } |
| OLD | NEW |