summaryrefslogtreecommitdiffstats
path: root/chrome/browser/importer/firefox_importer_utils.h
diff options
context:
space:
mode:
authorkuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-27 16:36:10 +0000
committerkuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-27 16:36:10 +0000
commit6f10a83d4397a71caa64ed0019ba59a0d9e94dd2 (patch)
treec49eafb666273ab744d8c703fdfa8c29e26f7485 /chrome/browser/importer/firefox_importer_utils.h
parent11ca005c425ef920f54b7317a775eb9b7b1bc148 (diff)
downloadchromium_src-6f10a83d4397a71caa64ed0019ba59a0d9e94dd2.zip
chromium_src-6f10a83d4397a71caa64ed0019ba59a0d9e94dd2.tar.gz
chromium_src-6f10a83d4397a71caa64ed0019ba59a0d9e94dd2.tar.bz2
Make the import feature a little more complete:
- Now we show import progress of individual items - In case Firefox is running we display a warning and allow user to close it before proceeding - Delete the Firefox lock when import finishes BUG=11191 Review URL: http://codereview.chromium.org/114047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16986 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/importer/firefox_importer_utils.h')
-rw-r--r--chrome/browser/importer/firefox_importer_utils.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/chrome/browser/importer/firefox_importer_utils.h b/chrome/browser/importer/firefox_importer_utils.h
index 06b6063..7212919 100644
--- a/chrome/browser/importer/firefox_importer_utils.h
+++ b/chrome/browser/importer/firefox_importer_utils.h
@@ -14,11 +14,17 @@
class GURL;
class TemplateURL;
+#if defined(OS_WIN)
// Detects which version of Firefox is installed from registry. Returns its
// major version, and drops the minor version. Returns 0 if
// failed. If there are indicators of both FF2 and FF3 it is
// biased to return the biggest version.
-int GetCurrentFirefoxMajorVersion();
+int GetCurrentFirefoxMajorVersionFromRegistry();
+
+// Detects where Firefox lives. Returns a empty string if Firefox
+// is not installed.
+std::wstring GetFirefoxInstallPathFromRegistry();
+#endif
#if defined(OS_WIN) || defined(OS_LINUX)
// Detects version of Firefox and installation path from given Firefox profile
@@ -46,10 +52,6 @@ FilePath GetProfilesINI();
void ParseProfileINI(std::wstring file, DictionaryValue* root);
#endif
-// Detects where Firefox lives. Returns a empty string if Firefox
-// is not installed.
-std::wstring GetFirefoxInstallPath();
-
// Returns true if we want to add the URL to the history. We filter
// out the URL with a unsupported scheme.
bool CanImportURL(const GURL& url);