Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Side by Side Diff: android_webview/browser/aw_locale_manager.h

Issue 2496183002: Use GetDefaultLocaleListString for returning LocaleList (Closed)
Patch Set: comments modified, only BCP47 format in accept languages Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 ANDROID_WEBVIEW_BROWSER_AW_LOCALE_MANAGER_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_LOCALE_MANAGER_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_LOCALE_MANAGER_H_ 6 #define ANDROID_WEBVIEW_BROWSER_AW_LOCALE_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 11
12 namespace android_webview { 12 namespace android_webview {
13 13
14 // Empty base class so this can be destroyed by AwContentBrowserClient. 14 // Empty base class so this can be destroyed by AwContentBrowserClient.
15 class AwLocaleManager { 15 class AwLocaleManager {
16 public: 16 public:
17 AwLocaleManager() {} 17 AwLocaleManager() {}
18 virtual ~AwLocaleManager() {} 18 virtual ~AwLocaleManager() {}
19 19
20 virtual std::string GetLocale() = 0; 20 virtual std::string GetLocale() = 0;
21 21
22 virtual std::string GetLocales() = 0;
Bernhard Bauer 2016/11/16 16:20:07 Maybe name this GetLocaleList(), so it's consisten
Yirui Huang 2016/11/17 02:12:53 Done.
23
22 private: 24 private:
23 DISALLOW_COPY_AND_ASSIGN(AwLocaleManager); 25 DISALLOW_COPY_AND_ASSIGN(AwLocaleManager);
24 }; 26 };
25 27
26 } // namespace android_webview 28 } // namespace android_webview
27 29
28 #endif // ANDROID_WEBVIEW_BROWSER_AW_LOCALE_MANAGER_H_ 30 #endif // ANDROID_WEBVIEW_BROWSER_AW_LOCALE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698