OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_BROWSER_ANDROID_LOCALE_LOCALE_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_LOCALE_LOCALE_MANAGER_H_ |
6 #define CHROME_BROWSER_ANDROID_LOCALE_LOCALE_MANAGER_H_ | 6 #define CHROME_BROWSER_ANDROID_LOCALE_LOCALE_MANAGER_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 | 12 |
13 // Provides access to the locale specific customizations on Android. | 13 // Provides access to the locale specific customizations on Android. |
14 class LocaleManager { | 14 class LocaleManager { |
15 public: | 15 public: |
16 static std::string GetYandexReferralID(); | 16 static std::string GetYandexReferralID(); |
17 | 17 |
18 private: | 18 private: |
19 DISALLOW_IMPLICIT_CONSTRUCTORS(LocaleManager); | 19 DISALLOW_IMPLICIT_CONSTRUCTORS(LocaleManager); |
20 }; | 20 }; |
21 | 21 |
| 22 bool RegisterLocaleManager(JNIEnv* env); |
| 23 |
22 #endif // CHROME_BROWSER_ANDROID_LOCALE_LOCALE_MANAGER_H_ | 24 #endif // CHROME_BROWSER_ANDROID_LOCALE_LOCALE_MANAGER_H_ |
OLD | NEW |