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 |
11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
13 | 13 |
14 class GURL; | 14 class GURL; |
15 class TemplateURL; | |
16 | 15 |
17 namespace base { | 16 namespace base { |
18 class DictionaryValue; | 17 class DictionaryValue; |
19 class FilePath; | 18 class FilePath; |
20 } | 19 } |
21 | 20 |
22 #if defined(OS_WIN) | 21 #if defined(OS_WIN) |
23 // Detects which version of Firefox is installed from registry. Returns its | 22 // Detects which version of Firefox is installed from registry. Returns its |
24 // major version, and drops the minor version. Returns 0 if failed. If there are | 23 // major version, and drops the minor version. Returns 0 if failed. If there are |
25 // indicators of both Firefox 2 and Firefox 3 it is biased to return the biggest | 24 // indicators of both Firefox 2 and Firefox 3 it is biased to return the biggest |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 std::string GetPrefsJsValue(const std::string& prefs, | 83 std::string GetPrefsJsValue(const std::string& prefs, |
85 const std::string& pref_key); | 84 const std::string& pref_key); |
86 | 85 |
87 // Returns the localized Firefox branding name. | 86 // Returns the localized Firefox branding name. |
88 // This is useful to differentiate between Firefox and Iceweasel. | 87 // This is useful to differentiate between Firefox and Iceweasel. |
89 // If anything goes wrong while trying to obtain the branding name, | 88 // If anything goes wrong while trying to obtain the branding name, |
90 // the function assumes it's Firefox. | 89 // the function assumes it's Firefox. |
91 base::string16 GetFirefoxImporterName(const base::FilePath& app_path); | 90 base::string16 GetFirefoxImporterName(const base::FilePath& app_path); |
92 | 91 |
93 #endif // CHROME_COMMON_IMPORTER_FIREFOX_IMPORTER_UTILS_H_ | 92 #endif // CHROME_COMMON_IMPORTER_FIREFOX_IMPORTER_UTILS_H_ |
OLD | NEW |