Chromium Code Reviews| 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 <Cocoa/Cocoa.h> | 5 #include <Cocoa/Cocoa.h> |
| 6 | 6 |
| 7 #include "chrome/browser/importer/safari_importer.h" | 7 #include "chrome/browser/importer/safari_importer.h" |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
| 13 #include "base/mac/mac_util.h" | 13 #include "base/mac/mac_util.h" |
| 14 #include "base/memory/scoped_nsobject.h" | 14 #include "base/mac/scoped_nsobject.h" |
|
Mark Mentovai
2013/06/24 21:29:48
Don’t #include what you don’t use.
| |
| 15 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
| 16 #include "base/strings/sys_string_conversions.h" | 16 #include "base/strings/sys_string_conversions.h" |
| 17 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
| 18 #include "base/time.h" | 18 #include "base/time.h" |
| 19 #include "chrome/browser/bookmarks/imported_bookmark_entry.h" | 19 #include "chrome/browser/bookmarks/imported_bookmark_entry.h" |
| 20 #include "chrome/browser/favicon/favicon_util.h" | 20 #include "chrome/browser/favicon/favicon_util.h" |
| 21 #include "chrome/browser/favicon/imported_favicon_usage.h" | 21 #include "chrome/browser/favicon/imported_favicon_usage.h" |
| 22 #include "chrome/browser/importer/importer_bridge.h" | 22 #include "chrome/browser/importer/importer_bridge.h" |
| 23 #include "chrome/common/url_constants.h" | 23 #include "chrome/common/url_constants.h" |
| 24 #include "googleurl/src/gurl.h" | 24 #include "googleurl/src/gurl.h" |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 390 if (!last_visit_str) | 390 if (!last_visit_str) |
| 391 continue; | 391 continue; |
| 392 | 392 |
| 393 // Convert Safari's last visit time to Unix Epoch time. | 393 // Convert Safari's last visit time to Unix Epoch time. |
| 394 double seconds_since_unix_epoch = HistoryTimeToEpochTime(last_visit_str); | 394 double seconds_since_unix_epoch = HistoryTimeToEpochTime(last_visit_str); |
| 395 row.set_last_visit(base::Time::FromDoubleT(seconds_since_unix_epoch)); | 395 row.set_last_visit(base::Time::FromDoubleT(seconds_since_unix_epoch)); |
| 396 | 396 |
| 397 history_items->push_back(row); | 397 history_items->push_back(row); |
| 398 } | 398 } |
| 399 } | 399 } |
| OLD | NEW |