Update CrOS OOBE throbber to MD throbber; delete old asset
[chromium-blink-merge.git] / chrome / common / importer / ie_importer_utils_win.cc
blob4275a8e4b08af146183ff602602d7c2aeee601f3
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.
5 #include "chrome/common/importer/ie_importer_utils_win.h"
7 #include "chrome/common/importer/ie_importer_test_registry_overrider_win.h"
9 namespace {
11 const base::char16 kIEFavoritesOrderKey[] =
12 L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\"
13 L"MenuOrder\\Favorites";
15 const base::char16 kIEStorage2Key[] =
16 L"Software\\Microsoft\\Internet Explorer\\IntelliForms\\Storage2";
18 const base::char16 kIESettingsMainKey[] =
19 L"Software\\Microsoft\\Internet Explorer\\Main";
21 base::string16 GetPotentiallyOverridenIEKey(
22 const base::string16& desired_key_path) {
23 base::string16 test_reg_override(
24 IEImporterTestRegistryOverrider::GetTestRegistryOverride());
25 return test_reg_override.empty() ? desired_key_path : test_reg_override;
28 } // namespace
30 namespace importer {
32 base::string16 GetIEFavoritesOrderKey() {
33 // Return kIEFavoritesOrderKey unless an override has been set for tests.
34 return GetPotentiallyOverridenIEKey(kIEFavoritesOrderKey);
37 base::string16 GetIE7PasswordsKey() {
38 // Return kIEStorage2Key unless an override has been set for tests.
39 return GetPotentiallyOverridenIEKey(kIEStorage2Key);
42 base::string16 GetIESettingsKey() {
43 // Return kIESettingsMainKey unless an override has been set for tests.
44 return GetPotentiallyOverridenIEKey(kIESettingsMainKey);
47 } // namespace importer