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

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

Issue 18501013: Move most importer code to chrome/utility/importer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: another gyp attempt Created 7 years, 5 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/ie_importer_utils_win.h ('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
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/importer/ie_importer_utils_win.h"
6
7 #include "chrome/browser/importer/ie_importer_test_registry_overrider_win.h"
8
9 namespace {
10
11 const char16 kIEFavoritesOrderKey[] =
12 L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\"
13 L"MenuOrder\\Favorites";
14
15 const char16 kIEStorage2Key[] =
16 L"Software\\Microsoft\\Internet Explorer\\IntelliForms\\Storage2";
17
18 const char16 kIESettingsMainKey[] =
19 L"Software\\Microsoft\\Internet Explorer\\Main";
20
21 string16 GetPotentiallyOverridenIEKey(const string16& desired_key_path) {
22 base::string16 test_reg_override(
23 IEImporterTestRegistryOverrider::GetTestRegistryOverride());
24 return test_reg_override.empty() ? desired_key_path : test_reg_override;
25 }
26
27 } // namespace
28
29 namespace importer {
30
31 base::string16 GetIEFavoritesOrderKey() {
32 // Return kIEFavoritesOrderKey unless an override has been set for tests.
33 return GetPotentiallyOverridenIEKey(kIEFavoritesOrderKey);
34 }
35
36 base::string16 GetIE7PasswordsKey() {
37 // Return kIEStorage2Key unless an override has been set for tests.
38 return GetPotentiallyOverridenIEKey(kIEStorage2Key);
39 }
40
41 base::string16 GetIESettingsKey() {
42 // Return kIESettingsMainKey unless an override has been set for tests.
43 return GetPotentiallyOverridenIEKey(kIESettingsMainKey);
44 }
45
46 } // namespace importer
47
OLDNEW
« no previous file with comments | « chrome/browser/importer/ie_importer_utils_win.h ('k') | chrome/browser/importer/importer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698