diff options
Diffstat (limited to 'chrome/browser/importer')
-rw-r--r-- | chrome/browser/importer/firefox2_importer.cc | 15 | ||||
-rw-r--r-- | chrome/browser/importer/firefox3_importer.cc | 15 | ||||
-rw-r--r-- | chrome/browser/importer/ie_importer.cc | 10 | ||||
-rw-r--r-- | chrome/browser/importer/safari_importer.mm | 10 |
4 files changed, 30 insertions, 20 deletions
diff --git a/chrome/browser/importer/firefox2_importer.cc b/chrome/browser/importer/firefox2_importer.cc index 95d7eb9..3a38b2f 100644 --- a/chrome/browser/importer/firefox2_importer.cc +++ b/chrome/browser/importer/firefox2_importer.cc @@ -49,6 +49,16 @@ void Firefox2Importer::StartImport(ProfileInfo profile_info, NotifyStarted(); if ((items & HOME_PAGE) && !cancelled()) ImportHomepage(); // Doesn't have a UI item. + + // Note history should be imported before bookmarks because bookmark import + // will also import favicons and we store favicon for a URL only if the URL + // exist in history or bookmarks. + if ((items & HISTORY) && !cancelled()) { + NotifyItemStarted(HISTORY); + ImportHistory(); + NotifyItemEnded(HISTORY); + } + if ((items & FAVORITES) && !cancelled()) { NotifyItemStarted(FAVORITES); ImportBookmarks(); @@ -64,11 +74,6 @@ void Firefox2Importer::StartImport(ProfileInfo profile_info, ImportPasswords(); NotifyItemEnded(PASSWORDS); } - if ((items & HISTORY) && !cancelled()) { - NotifyItemStarted(HISTORY); - ImportHistory(); - NotifyItemEnded(HISTORY); - } NotifyEnded(); } diff --git a/chrome/browser/importer/firefox3_importer.cc b/chrome/browser/importer/firefox3_importer.cc index 0a951ad..a509f55 100644 --- a/chrome/browser/importer/firefox3_importer.cc +++ b/chrome/browser/importer/firefox3_importer.cc @@ -38,6 +38,16 @@ void Firefox3Importer::StartImport(ProfileInfo profile_info, NotifyStarted(); if ((items & HOME_PAGE) && !cancelled()) ImportHomepage(); // Doesn't have a UI item. + + // Note history should be imported before bookmarks because bookmark import + // will also import favicons and we store favicon for a URL only if the URL + // exist in history or bookmarks. + if ((items & HISTORY) && !cancelled()) { + NotifyItemStarted(HISTORY); + ImportHistory(); + NotifyItemEnded(HISTORY); + } + if ((items & FAVORITES) && !cancelled()) { NotifyItemStarted(FAVORITES); ImportBookmarks(); @@ -53,11 +63,6 @@ void Firefox3Importer::StartImport(ProfileInfo profile_info, ImportPasswords(); NotifyItemEnded(PASSWORDS); } - if ((items & HISTORY) && !cancelled()) { - NotifyItemStarted(HISTORY); - ImportHistory(); - NotifyItemEnded(HISTORY); - } NotifyEnded(); } diff --git a/chrome/browser/importer/ie_importer.cc b/chrome/browser/importer/ie_importer.cc index 2d979ad..9a2606b 100644 --- a/chrome/browser/importer/ie_importer.cc +++ b/chrome/browser/importer/ie_importer.cc @@ -79,6 +79,11 @@ void IEImporter::StartImport(ProfileInfo profile_info, if ((items & HOME_PAGE) && !cancelled()) ImportHomepage(); // Doesn't have a UI item. // The order here is important! + if ((items & HISTORY) && !cancelled()) { + NotifyItemStarted(HISTORY); + ImportHistory(); + NotifyItemEnded(HISTORY); + } if ((items & FAVORITES) && !cancelled()) { NotifyItemStarted(FAVORITES); ImportFavorites(); @@ -98,11 +103,6 @@ void IEImporter::StartImport(ProfileInfo profile_info, ImportPasswordsIE7(); NotifyItemEnded(PASSWORDS); } - if ((items & HISTORY) && !cancelled()) { - NotifyItemStarted(HISTORY); - ImportHistory(); - NotifyItemEnded(HISTORY); - } NotifyEnded(); } diff --git a/chrome/browser/importer/safari_importer.mm b/chrome/browser/importer/safari_importer.mm index 1f839a7..e862b97 100644 --- a/chrome/browser/importer/safari_importer.mm +++ b/chrome/browser/importer/safari_importer.mm @@ -55,6 +55,11 @@ void SafariImporter::StartImport(ProfileInfo profile_info, NotifyStarted(); if ((items & HOME_PAGE) && !cancelled()) ImportHomepage(); // Doesn't have a UI item. + if ((items & HISTORY) && !cancelled()) { + NotifyItemStarted(HISTORY); + ImportHistory(); + NotifyItemEnded(HISTORY); + } if ((items & FAVORITES) && !cancelled()) { NotifyItemStarted(FAVORITES); ImportBookmarks(); @@ -65,11 +70,6 @@ void SafariImporter::StartImport(ProfileInfo profile_info, ImportPasswords(); NotifyItemEnded(PASSWORDS); } - if ((items & HISTORY) && !cancelled()) { - NotifyItemStarted(HISTORY); - ImportHistory(); - NotifyItemEnded(HISTORY); - } NotifyEnded(); } |