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/utility/importer/firefox3_importer.h" | 5 #include "chrome/utility/importer/firefox3_importer.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/files/file_enumerator.h" | 10 #include "base/files/file_enumerator.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
13 #include "base/stl_util.h" | 13 #include "base/stl_util.h" |
14 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
15 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
16 #include "chrome/common/importer/firefox_importer_utils.h" | 16 #include "chrome/common/importer/firefox_importer_utils.h" |
17 #include "chrome/common/importer/firefox_importer_utils.h" | 17 #include "chrome/common/importer/firefox_importer_utils.h" |
18 #include "chrome/common/importer/imported_bookmark_entry.h" | 18 #include "chrome/common/importer/imported_bookmark_entry.h" |
19 #include "chrome/common/importer/imported_favicon_usage.h" | 19 #include "chrome/common/importer/imported_favicon_usage.h" |
20 #include "chrome/common/importer/importer_bridge.h" | 20 #include "chrome/common/importer/importer_bridge.h" |
21 #include "chrome/common/importer/importer_url_row.h" | 21 #include "chrome/common/importer/importer_url_row.h" |
22 #include "chrome/common/time_format.h" | 22 #include "chrome/common/time_format.h" |
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 | 579 |
580 if (!importer::ReencodeFavicon(&data[0], data.size(), &usage.png_data)) | 580 if (!importer::ReencodeFavicon(&data[0], data.size(), &usage.png_data)) |
581 continue; // Unable to decode. | 581 continue; // Unable to decode. |
582 | 582 |
583 usage.urls = i->second; | 583 usage.urls = i->second; |
584 favicons->push_back(usage); | 584 favicons->push_back(usage); |
585 } | 585 } |
586 s.Reset(true); | 586 s.Reset(true); |
587 } | 587 } |
588 } | 588 } |
OLD | NEW |