Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(192)

Side by Side Diff: chrome/browser/importer/ie_importer.cc

Issue 18263: Move search engines files into subdir (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/importer/firefox_importer_utils.cc ('k') | chrome/browser/importer/importer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "base/file_util.h" 15 #include "base/file_util.h"
16 #include "base/registry.h" 16 #include "base/registry.h"
17 #include "base/string_util.h" 17 #include "base/string_util.h"
18 #include "base/time.h" 18 #include "base/time.h"
19 #include "base/win_util.h" 19 #include "base/win_util.h"
20 #include "chrome/browser/bookmarks/bookmark_model.h" 20 #include "chrome/browser/bookmarks/bookmark_model.h"
21 #include "chrome/browser/password_manager/ie7_password.h" 21 #include "chrome/browser/password_manager/ie7_password.h"
22 #include "chrome/browser/template_url_model.h" 22 #include "chrome/browser/search_engines/template_url_model.h"
23 #include "chrome/common/l10n_util.h" 23 #include "chrome/common/l10n_util.h"
24 #include "chrome/common/time_format.h" 24 #include "chrome/common/time_format.h"
25 #include "chrome/common/win_util.h" 25 #include "chrome/common/win_util.h"
26 #include "googleurl/src/gurl.h" 26 #include "googleurl/src/gurl.h"
27 27
28 #include "generated_resources.h" 28 #include "generated_resources.h"
29 29
30 using base::Time; 30 using base::Time;
31 31
32 namespace { 32 namespace {
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 if (version < 0) { 556 if (version < 0) {
557 wchar_t buffer[128]; 557 wchar_t buffer[128];
558 DWORD buffer_length = sizeof(buffer); 558 DWORD buffer_length = sizeof(buffer);
559 bool result = ReadFromRegistry(HKEY_LOCAL_MACHINE, 559 bool result = ReadFromRegistry(HKEY_LOCAL_MACHINE,
560 L"Software\\Microsoft\\Internet Explorer", 560 L"Software\\Microsoft\\Internet Explorer",
561 L"Version", buffer, &buffer_length); 561 L"Version", buffer, &buffer_length);
562 version = (result ? _wtoi(buffer) : 0); 562 version = (result ? _wtoi(buffer) : 0);
563 } 563 }
564 return version; 564 return version;
565 } 565 }
OLDNEW
« no previous file with comments | « chrome/browser/importer/firefox_importer_utils.cc ('k') | chrome/browser/importer/importer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698