| 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/firefox3_importer.h" | 5 #include "chrome/browser/importer/firefox3_importer.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 | 8 |
| 9 #include "app/l10n_util.h" |
| 9 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| 10 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
| 11 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 12 #include "chrome/browser/importer/firefox2_importer.h" | 13 #include "chrome/browser/importer/firefox2_importer.h" |
| 13 #include "chrome/browser/importer/firefox_importer_utils.h" | 14 #include "chrome/browser/importer/firefox_importer_utils.h" |
| 14 #include "chrome/common/l10n_util.h" | |
| 15 #include "chrome/common/time_format.h" | 15 #include "chrome/common/time_format.h" |
| 16 #include "grit/generated_resources.h" | 16 #include "grit/generated_resources.h" |
| 17 | 17 |
| 18 using base::Time; | 18 using base::Time; |
| 19 | 19 |
| 20 // Wraps the function sqlite3_close() in a class that is | 20 // Wraps the function sqlite3_close() in a class that is |
| 21 // used in scoped_ptr_malloc. | 21 // used in scoped_ptr_malloc. |
| 22 | 22 |
| 23 namespace { | 23 namespace { |
| 24 | 24 |
| (...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 | 497 |
| 498 if (!ReencodeFavicon(&data[0], data.size(), &usage.png_data)) | 498 if (!ReencodeFavicon(&data[0], data.size(), &usage.png_data)) |
| 499 continue; // Unable to decode. | 499 continue; // Unable to decode. |
| 500 | 500 |
| 501 usage.urls = i->second; | 501 usage.urls = i->second; |
| 502 favicons->push_back(usage); | 502 favicons->push_back(usage); |
| 503 } | 503 } |
| 504 s.reset(); | 504 s.reset(); |
| 505 } | 505 } |
| 506 } | 506 } |
| OLD | NEW |