summaryrefslogtreecommitdiffstats
path: root/chrome/browser/importer/importer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/importer/importer.cc')
-rw-r--r--chrome/browser/importer/importer.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/importer/importer.cc b/chrome/browser/importer/importer.cc
index eddc493..359790b 100644
--- a/chrome/browser/importer/importer.cc
+++ b/chrome/browser/importer/importer.cc
@@ -85,6 +85,11 @@ void ProfileWriter::AddBookmarkEntry(
bool show_bookmark_toolbar = false;
std::set<const BookmarkNode*> groups_added_to;
+ bool import_mode = false;
+ if (bookmark.size() > 1) {
+ model->BeginImportMode();
+ import_mode = true;
+ }
for (std::vector<BookmarkEntry>::const_iterator it = bookmark.begin();
it != bookmark.end(); ++it) {
// Don't insert this url if it isn't valid.
@@ -142,6 +147,10 @@ void ProfileWriter::AddBookmarkEntry(
model->ResetDateGroupModified(*i);
}
+ if (import_mode) {
+ model->EndImportMode();
+ }
+
if (show_bookmark_toolbar)
ShowBookmarkBar();
}