From 539b3d8e469b5e2eb7f5609a356ba8a2f142f565 Mon Sep 17 00:00:00 2001 From: "huanr@chromium.org" Date: Fri, 9 Jul 2010 18:30:45 +0000 Subject: Make bookmark import not to enable bookmark bar by default. BUG=46528 TEST=mini_installer.exe --installerdata= Review URL: http://codereview.chromium.org/2962004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51987 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/importer/importer.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'chrome/browser/importer/importer.cc') diff --git a/chrome/browser/importer/importer.cc b/chrome/browser/importer/importer.cc index fcb8f28..62376c3 100644 --- a/chrome/browser/importer/importer.cc +++ b/chrome/browser/importer/importer.cc @@ -39,7 +39,8 @@ using webkit_glue::PasswordForm; Importer::Importer() : cancelled_(false), - import_to_bookmark_bar_(false) { + import_to_bookmark_bar_(false), + bookmark_bar_disabled_(false) { } Importer::~Importer() { @@ -177,6 +178,7 @@ void ImporterHost::StartImportSettings( importer_->AddRef(); importer_->set_import_to_bookmark_bar(ShouldImportToBookmarkBar(first_run)); + importer_->set_bookmark_bar_disabled(first_run); scoped_refptr bridge( new InProcessImporterBridge(writer_.get(), this)); task_ = NewRunnableMethod(importer_, &Importer::StartImport, @@ -584,4 +586,3 @@ void ExternalProcessImporterClient::OnKeywordsImportReady( bridge_->SetKeywords(template_url_vec, default_keyword_index, unique_on_host_and_path); } - -- cgit v1.1