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/ie_importer.h" | 5 #include "chrome/browser/ie_importer.h" |
6 | 6 |
7 #include <intshcut.h> | 7 #include <intshcut.h> |
8 #include <pstore.h> | 8 #include <pstore.h> |
9 #include <shlobj.h> | 9 #include <shlobj.h> |
10 #include <urlhist.h> | 10 #include <urlhist.h> |
11 #include <algorithm> | 11 #include <algorithm> |
12 | 12 |
13 #include "base/file_util.h" | 13 #include "base/file_util.h" |
14 #include "base/registry.h" | 14 #include "base/registry.h" |
15 #include "base/string_util.h" | 15 #include "base/string_util.h" |
16 #include "base/time.h" | 16 #include "base/time.h" |
17 #include "base/win_util.h" | 17 #include "base/win_util.h" |
18 #include "chrome/browser/bookmarks/bookmark_bar_model.h" | 18 #include "chrome/browser/bookmarks/bookmark_model.h" |
19 #include "chrome/browser/ie7_password.h" | 19 #include "chrome/browser/ie7_password.h" |
20 #include "chrome/browser/template_url_model.h" | 20 #include "chrome/browser/template_url_model.h" |
21 #include "chrome/common/l10n_util.h" | 21 #include "chrome/common/l10n_util.h" |
22 #include "chrome/common/time_format.h" | 22 #include "chrome/common/time_format.h" |
23 #include "chrome/common/win_util.h" | 23 #include "chrome/common/win_util.h" |
24 #include "googleurl/src/gurl.h" | 24 #include "googleurl/src/gurl.h" |
25 | 25 |
26 #include "generated_resources.h" | 26 #include "generated_resources.h" |
27 | 27 |
28 namespace { | 28 namespace { |
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 wchar_t buffer[128]; | 558 wchar_t buffer[128]; |
559 DWORD buffer_length = sizeof(buffer); | 559 DWORD buffer_length = sizeof(buffer); |
560 bool result = ReadFromRegistry(HKEY_LOCAL_MACHINE, | 560 bool result = ReadFromRegistry(HKEY_LOCAL_MACHINE, |
561 L"Software\\Microsoft\\Internet Explorer", | 561 L"Software\\Microsoft\\Internet Explorer", |
562 L"Version", buffer, &buffer_length); | 562 L"Version", buffer, &buffer_length); |
563 version = (result ? _wtoi(buffer) : 0); | 563 version = (result ? _wtoi(buffer) : 0); |
564 } | 564 } |
565 return version; | 565 return version; |
566 } | 566 } |
567 | 567 |
OLD | NEW |