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/ie_importer.h" | 5 #include "chrome/browser/importer/ie_importer.h" |
6 | 6 |
7 #include <atlbase.h> | 7 #include <atlbase.h> |
8 #include <intshcut.h> | 8 #include <intshcut.h> |
9 #include <pstore.h> | 9 #include <pstore.h> |
10 #include <shlobj.h> | 10 #include <shlobj.h> |
11 #include <urlhist.h> | 11 #include <urlhist.h> |
12 | 12 |
13 #include <algorithm> | 13 #include <algorithm> |
14 | 14 |
15 #include "app/l10n_util.h" | 15 #include "app/l10n_util.h" |
| 16 #include "app/win_util.h" |
16 #include "base/file_util.h" | 17 #include "base/file_util.h" |
17 #include "base/registry.h" | 18 #include "base/registry.h" |
18 #include "base/string_util.h" | 19 #include "base/string_util.h" |
19 #include "base/time.h" | 20 #include "base/time.h" |
20 #include "base/win_util.h" | 21 #include "base/win_util.h" |
21 #include "chrome/browser/bookmarks/bookmark_model.h" | 22 #include "chrome/browser/bookmarks/bookmark_model.h" |
22 #include "chrome/browser/password_manager/ie7_password.h" | 23 #include "chrome/browser/password_manager/ie7_password.h" |
23 #include "chrome/browser/search_engines/template_url_model.h" | 24 #include "chrome/browser/search_engines/template_url_model.h" |
24 #include "chrome/common/time_format.h" | 25 #include "chrome/common/time_format.h" |
25 #include "chrome/common/url_constants.h" | 26 #include "chrome/common/url_constants.h" |
26 #include "chrome/common/win_util.h" | |
27 #include "googleurl/src/gurl.h" | 27 #include "googleurl/src/gurl.h" |
28 #include "grit/generated_resources.h" | 28 #include "grit/generated_resources.h" |
29 | 29 |
30 using base::Time; | 30 using base::Time; |
31 | 31 |
32 namespace { | 32 namespace { |
33 | 33 |
34 // Gets the creation time of the given file or directory. | 34 // Gets the creation time of the given file or directory. |
35 static Time GetFileCreationTime(const std::wstring& file) { | 35 static Time GetFileCreationTime(const std::wstring& file) { |
36 Time creation_time; | 36 Time creation_time; |
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 if (version < 0) { | 559 if (version < 0) { |
560 wchar_t buffer[128]; | 560 wchar_t buffer[128]; |
561 DWORD buffer_length = sizeof(buffer); | 561 DWORD buffer_length = sizeof(buffer); |
562 bool result = ReadFromRegistry(HKEY_LOCAL_MACHINE, | 562 bool result = ReadFromRegistry(HKEY_LOCAL_MACHINE, |
563 L"Software\\Microsoft\\Internet Explorer", | 563 L"Software\\Microsoft\\Internet Explorer", |
564 L"Version", buffer, &buffer_length); | 564 L"Version", buffer, &buffer_length); |
565 version = (result ? _wtoi(buffer) : 0); | 565 version = (result ? _wtoi(buffer) : 0); |
566 } | 566 } |
567 return version; | 567 return version; |
568 } | 568 } |
OLD | NEW |