Index: chrome/browser/importer/firefox_importer_utils.h |
diff --git a/chrome/browser/importer/firefox_importer_utils.h b/chrome/browser/importer/firefox_importer_utils.h |
index e2e23812ce927ca0ecfda33f0022bb408ae2f6a7..b5c4d6dfd436b89ea158ef98506ad096d7a91d0d 100644 |
--- a/chrome/browser/importer/firefox_importer_utils.h |
+++ b/chrome/browser/importer/firefox_importer_utils.h |
@@ -6,6 +6,7 @@ |
#define CHROME_BROWSER_IMPORTER_FIREFOX_IMPORTER_UTILS_H_ |
#pragma once |
+#include <string> |
#include <vector> |
#include "base/basictypes.h" |
@@ -95,4 +96,9 @@ bool IsDefaultHomepage(const GURL& homepage, const FilePath& app_path); |
// key/pair is not valid UTF-8, it is ignored and will not appear in |prefs|. |
bool ParsePrefFile(const FilePath& pref_file, DictionaryValue* prefs); |
+// Parses the value of a particular firefox preference from a string that is |
+// the contents of the prefs file. |
+std::string GetPrefsJsValue(const std::string& prefs, |
+ const std::string& pref_key); |
+ |
#endif // CHROME_BROWSER_IMPORTER_FIREFOX_IMPORTER_UTILS_H_ |