diff options
author | kuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-18 21:14:34 +0000 |
---|---|---|
committer | kuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-18 21:14:34 +0000 |
commit | 0072d87bf9dae6259147d51df6067d60f337228d (patch) | |
tree | d4f9bb62a785550c66424a6f466867f7df993cd8 /chrome/browser/importer/firefox3_importer.cc | |
parent | b3326d6308460c7d2789ee0d719886c7a6745091 (diff) | |
download | chromium_src-0072d87bf9dae6259147d51df6067d60f337228d.zip chromium_src-0072d87bf9dae6259147d51df6067d60f337228d.tar.gz chromium_src-0072d87bf9dae6259147d51df6067d60f337228d.tar.bz2 |
Import bookmarks to bookmark bar if user has not bookmarked anything yet.
BUG=9000
Review URL: http://codereview.chromium.org/131004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18751 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/importer/firefox3_importer.cc')
-rw-r--r-- | chrome/browser/importer/firefox3_importer.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/importer/firefox3_importer.cc b/chrome/browser/importer/firefox3_importer.cc index 0c6571d..2f8eb46 100644 --- a/chrome/browser/importer/firefox3_importer.cc +++ b/chrome/browser/importer/firefox3_importer.cc @@ -197,7 +197,7 @@ void Firefox3Importer::ImportBookmarks() { // This bookmark entry should be put in the bookmark bar. // But we put it in the Firefox group after first run, so // that do not mess up the bookmark bar. - if (first_run()) { + if (import_to_bookmark_bar()) { is_in_toolbar = true; } else { path.insert(path.begin(), parent->title); @@ -209,7 +209,7 @@ void Firefox3Importer::ImportBookmarks() { parent->id == unsorted_folder_id) { // After the first run, the item will be placed in a folder in // the "Other bookmarks". - if (!first_run()) + if (!import_to_bookmark_bar()) path.insert(path.begin(), firefox_folder); found_path = true; break; @@ -250,7 +250,7 @@ void Firefox3Importer::ImportBookmarks() { main_loop_->PostTask(FROM_HERE, NewRunnableMethod(writer_, &ProfileWriter::AddBookmarkEntry, bookmarks, l10n_util::GetString(IDS_BOOKMARK_GROUP_FROM_FIREFOX), - first_run() ? ProfileWriter::FIRST_RUN : 0)); + import_to_bookmark_bar() ? ProfileWriter::IMPORT_TO_BOOKMARK_BAR : 0)); } if (!template_urls.empty() && !cancelled()) { main_loop_->PostTask(FROM_HERE, NewRunnableMethod(writer_, |