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

Unified Diff: chrome/browser/importer/ie_importer.cc

Issue 15736014: Registry overriding doesn't seem to work across multiple processes prior to Win8, instead simply ha… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/importer/ie_importer.h ('k') | chrome/browser/importer/ie_importer_browsertest_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/importer/ie_importer.cc
diff --git a/chrome/browser/importer/ie_importer.cc b/chrome/browser/importer/ie_importer.cc
index 37d83c31cb27fc49cd469f61138f1ae9591e6ff4..36a7db6c4dabde45f284e2acc3729f30d872f88e 100644
--- a/chrome/browser/importer/ie_importer.cc
+++ b/chrome/browser/importer/ie_importer.cc
@@ -31,6 +31,7 @@
#include "chrome/browser/bookmarks/imported_bookmark_entry.h"
#include "chrome/browser/favicon/favicon_util.h"
#include "chrome/browser/favicon/imported_favicon_usage.h"
+#include "chrome/browser/importer/ie_importer_utils_win.h"
#include "chrome/browser/importer/importer_bridge.h"
#include "chrome/browser/importer/importer_data_types.h"
#include "chrome/browser/importer/pstore_declarations.h"
@@ -54,9 +55,6 @@ const char16 kSearchScopePath[] =
L"Software\\Microsoft\\Internet Explorer\\SearchScopes";
const char16 kIESettingsMain[] =
L"Software\\Microsoft\\Internet Explorer\\Main";
-const char16 kIEFavoritesOrderKey[] =
- L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\"
- L"MenuOrder\\Favorites";
const char16 kIEVersionKey[] =
L"Software\\Microsoft\\Internet Explorer";
const char16 kIEToolbarKey[] =
@@ -252,7 +250,8 @@ bool ParseFavoritesOrderRegistryTree(
bool ParseFavoritesOrderInfo(
const Importer* importer,
std::map<base::FilePath, uint32>* sort_index) WARN_UNUSED_RESULT {
- base::win::RegKey key(HKEY_CURRENT_USER, kIEFavoritesOrderKey, KEY_READ);
+ base::string16 key_path(importer::GetIEFavoritesOrderKey());
+ base::win::RegKey key(HKEY_CURRENT_USER, key_path.c_str(), KEY_READ);
if (!key.Valid())
return false;
return ParseFavoritesOrderRegistryTree(importer, key, base::FilePath(),
@@ -421,14 +420,6 @@ void IEImporter::StartImport(const importer::SourceProfile& source_profile,
bridge_ = bridge;
source_path_ = source_profile.source_path;
- // If there is indication that an override is required, but we fail to set it,
- // prefer returning early to running the test with whatever is in the real
- // registry.
- if (!test_registry_overrider_.StartRegistryOverrideIfNeeded()) {
- NOTREACHED();
- return;
- }
-
bridge_->NotifyStarted();
if ((items & importer::HOME_PAGE) && !cancelled())
« no previous file with comments | « chrome/browser/importer/ie_importer.h ('k') | chrome/browser/importer/ie_importer_browsertest_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698