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

Unified Diff: chrome/utility/importer/importer_creator.cc

Issue 1465853002: Implement support for importing favorites from Edge on Windows 10. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added missing include files Created 5 years 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
Index: chrome/utility/importer/importer_creator.cc
diff --git a/chrome/utility/importer/importer_creator.cc b/chrome/utility/importer/importer_creator.cc
index d1ebe1a3b1cad66892238e3d64eb538e8c93d81b..f260f8c52bfcefe80e3398b52866b1293e56c7e3 100644
--- a/chrome/utility/importer/importer_creator.cc
+++ b/chrome/utility/importer/importer_creator.cc
@@ -9,6 +9,8 @@
#include "chrome/utility/importer/firefox_importer.h"
#if defined(OS_WIN)
+#include "chrome/common/importer/edge_importer_utils_win.h"
+#include "chrome/utility/importer/edge_importer_win.h"
#include "chrome/utility/importer/ie_importer_win.h"
#endif
@@ -26,6 +28,11 @@ Importer* CreateImporterByType(ImporterType type) {
#if defined(OS_WIN)
case TYPE_IE:
return new IEImporter();
+ case TYPE_EDGE:
+ // If legacy mode we pass back an IE importer.
+ if (IsEdgeFavoritesLegacyMode())
+ return new IEImporter();
+ return new EdgeImporter();
#endif
case TYPE_BOOKMARKS_FILE:
return new BookmarksFileImporter();

Powered by Google App Engine
This is Rietveld 408576698