This source file includes following definitions.
- GetPotentiallyOverridenIEKey
- GetIEFavoritesOrderKey
- GetIE7PasswordsKey
- GetIESettingsKey
#include "chrome/common/importer/ie_importer_utils_win.h"
#include "chrome/common/importer/ie_importer_test_registry_overrider_win.h"
namespace {
const base::char16 kIEFavoritesOrderKey[] =
L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\"
L"MenuOrder\\Favorites";
const base::char16 kIEStorage2Key[] =
L"Software\\Microsoft\\Internet Explorer\\IntelliForms\\Storage2";
const base::char16 kIESettingsMainKey[] =
L"Software\\Microsoft\\Internet Explorer\\Main";
base::string16 GetPotentiallyOverridenIEKey(
const base::string16& desired_key_path) {
base::string16 test_reg_override(
IEImporterTestRegistryOverrider::GetTestRegistryOverride());
return test_reg_override.empty() ? desired_key_path : test_reg_override;
}
}
namespace importer {
base::string16 GetIEFavoritesOrderKey() {
return GetPotentiallyOverridenIEKey(kIEFavoritesOrderKey);
}
base::string16 GetIE7PasswordsKey() {
return GetPotentiallyOverridenIEKey(kIEStorage2Key);
}
base::string16 GetIESettingsKey() {
return GetPotentiallyOverridenIEKey(kIESettingsMainKey);
}
}