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 "base/file_path.h" | 8 #include "base/file_path.h" |
8 #include "base/file_util.h" | 9 #include "base/file_util.h" |
9 #include "base/path_service.h" | 10 #include "base/path_service.h" |
10 #include "base/string_util.h" | 11 #include "base/string_util.h" |
11 #include "base/values.h" | 12 #include "base/values.h" |
12 #include "chrome/browser/importer/firefox_importer_utils.h" | 13 #include "chrome/browser/importer/firefox_importer_utils.h" |
13 #include "chrome/browser/importer/mork_reader.h" | 14 #include "chrome/browser/importer/mork_reader.h" |
14 #include "chrome/browser/search_engines/template_url.h" | 15 #include "chrome/browser/search_engines/template_url.h" |
15 #include "chrome/browser/search_engines/template_url_parser.h" | 16 #include "chrome/browser/search_engines/template_url_parser.h" |
16 #include "chrome/common/l10n_util.h" | |
17 #include "chrome/common/time_format.h" | 17 #include "chrome/common/time_format.h" |
18 #include "chrome/common/url_constants.h" | 18 #include "chrome/common/url_constants.h" |
19 #include "grit/generated_resources.h" | 19 #include "grit/generated_resources.h" |
20 #include "net/base/data_url.h" | 20 #include "net/base/data_url.h" |
21 | 21 |
22 using base::Time; | 22 using base::Time; |
23 | 23 |
24 // Firefox2Importer. | 24 // Firefox2Importer. |
25 | 25 |
26 Firefox2Importer::Firefox2Importer() : parsing_bookmarks_html_file_(false) { | 26 Firefox2Importer::Firefox2Importer() : parsing_bookmarks_html_file_(false) { |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 | 551 |
552 // We need to make up a URL for the favicon. We use a version of the page's | 552 // We need to make up a URL for the favicon. We use a version of the page's |
553 // URL so that we can be sure it will not collide. | 553 // URL so that we can be sure it will not collide. |
554 usage.favicon_url = GURL(std::string("made-up-favicon:") + link_url.spec()); | 554 usage.favicon_url = GURL(std::string("made-up-favicon:") + link_url.spec()); |
555 | 555 |
556 // We only have one URL per favicon for Firefox 2 bookmarks. | 556 // We only have one URL per favicon for Firefox 2 bookmarks. |
557 usage.urls.insert(link_url); | 557 usage.urls.insert(link_url); |
558 | 558 |
559 favicons->push_back(usage); | 559 favicons->push_back(usage); |
560 } | 560 } |
OLD | NEW |