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

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

Issue 6979007: Many fixes to bookmark importing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Happy tests =) Created 9 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/importer_host.h ('k') | chrome/browser/importer/importer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/importer/importer_host.cc
diff --git a/chrome/browser/importer/importer_host.cc b/chrome/browser/importer/importer_host.cc
index c81094cf5b5dc777de09c2b646b8ef580c8ab437..a012b8cb451a356b910af26d286fce0918105cf2 100644
--- a/chrome/browser/importer/importer_host.cc
+++ b/chrome/browser/importer/importer_host.cc
@@ -117,8 +117,6 @@ void ImporterHost::StartImportSettings(
}
importer_->AddRef();
- importer_->set_import_to_bookmark_bar(ShouldImportToBookmarkBar(first_run));
- importer_->set_bookmark_bar_disabled(first_run);
scoped_refptr<InProcessImporterBridge> bridge(
new InProcessImporterBridge(writer_.get(), this));
@@ -172,14 +170,6 @@ ImporterHost::~ImporterHost() {
}
}
-bool ImporterHost::ShouldImportToBookmarkBar(bool first_run) {
- bool import_to_bookmark_bar = first_run;
- if (profile_ && profile_->GetBookmarkModel()->IsLoaded()) {
- import_to_bookmark_bar = (!profile_->GetBookmarkModel()->HasBookmarks());
- }
- return import_to_bookmark_bar;
-}
-
void ImporterHost::CheckForFirefoxLock(
const importer::SourceProfile& source_profile,
uint16 items,
@@ -232,7 +222,6 @@ void ImporterHost::Loaded(BookmarkModel* model) {
waiting_for_bookmarkbar_model_ = false;
installed_bookmark_observer_ = false;
- importer_->set_import_to_bookmark_bar(!model->HasBookmarks());
InvokeTaskIfDone();
}
« no previous file with comments | « chrome/browser/importer/importer_host.h ('k') | chrome/browser/importer/importer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698