OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_COMMON_IMPORTER_FIREFOX_IMPORTER_UTILS_H_ | 5 #ifndef CHROME_COMMON_IMPORTER_FIREFOX_IMPORTER_UTILS_H_ |
6 #define CHROME_COMMON_IMPORTER_FIREFOX_IMPORTER_UTILS_H_ | 6 #define CHROME_COMMON_IMPORTER_FIREFOX_IMPORTER_UTILS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 82 |
83 // Parses the value of a particular firefox preference from a string that is the | 83 // Parses the value of a particular firefox preference from a string that is the |
84 // contents of the prefs file. | 84 // contents of the prefs file. |
85 std::string GetPrefsJsValue(const std::string& prefs, | 85 std::string GetPrefsJsValue(const std::string& prefs, |
86 const std::string& pref_key); | 86 const std::string& pref_key); |
87 | 87 |
88 // Returns the localized Firefox branding name. | 88 // Returns the localized Firefox branding name. |
89 // This is useful to differentiate between Firefox and Iceweasel. | 89 // This is useful to differentiate between Firefox and Iceweasel. |
90 // If anything goes wrong while trying to obtain the branding name, | 90 // If anything goes wrong while trying to obtain the branding name, |
91 // the function assumes it's Firefox. | 91 // the function assumes it's Firefox. |
92 string16 GetFirefoxImporterName(const base::FilePath& app_path); | 92 base::string16 GetFirefoxImporterName(const base::FilePath& app_path); |
93 | 93 |
94 #endif // CHROME_COMMON_IMPORTER_FIREFOX_IMPORTER_UTILS_H_ | 94 #endif // CHROME_COMMON_IMPORTER_FIREFOX_IMPORTER_UTILS_H_ |
OLD | NEW |