summaryrefslogtreecommitdiffstats
path: root/chrome/browser/importer
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-25 23:41:45 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-25 23:41:45 +0000
commit8c47d69ca531d30e0ab82377420e5525424b86ce (patch)
tree6a6427b8605c353420342fa20e6b03a788c2f70b /chrome/browser/importer
parentc0e11ab531aae20470289475d69ac507d9715262 (diff)
downloadchromium_src-8c47d69ca531d30e0ab82377420e5525424b86ce.zip
chromium_src-8c47d69ca531d30e0ab82377420e5525424b86ce.tar.gz
chromium_src-8c47d69ca531d30e0ab82377420e5525424b86ce.tar.bz2
Refactor new first run control flow.
Factor out the common code so that Mac and Linux may share the new flow with Windows (e.g., import is done before the first run dialog appears). Windows *should* be unaffected by this change. Linux has some non-user-visible changes. The user visible changes (showing the default search engine in the ballot, for example) are TODO. BUG=49705,47651 TEST=launching chromium with --first-run works as expected, i.e. it imports stuff from your default browser (such as history); if that browser is firefox and firefox is open, the failure is silent. Review URL: http://codereview.chromium.org/3171029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57421 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/importer')
-rw-r--r--chrome/browser/importer/importer.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/browser/importer/importer.cc b/chrome/browser/importer/importer.cc
index 3c840f0..5280c13 100644
--- a/chrome/browser/importer/importer.cc
+++ b/chrome/browser/importer/importer.cc
@@ -277,8 +277,7 @@ void ImporterHost::CheckForFirefoxLock(
// If fail to acquire the lock, we set the source unreadable and
// show a warning dialog, unless running without UI.
is_source_readable_ = false;
- if (!this->headless_)
- ShowWarningDialog();
+ ShowWarningDialog();
}
}
}