diff --git a/libcef/browser/content_browser_client.cc b/libcef/browser/content_browser_client.cc index f4c871f58..22b53b3e3 100644 --- a/libcef/browser/content_browser_client.cc +++ b/libcef/browser/content_browser_client.cc @@ -41,6 +41,7 @@ #include "base/json/json_reader.h" #include "base/path_service.h" #include "cef/grit/cef_resources.h" +#include "chrome/browser/browser_process.h" #include "chrome/browser/chrome_service.h" #include "chrome/browser/plugins/plugin_info_host_impl.h" #include "chrome/browser/profiles/profile.h" @@ -761,6 +762,10 @@ void CefContentBrowserClient::AppendExtraCommandLineSwitches( } } +std::string CefContentBrowserClient::GetApplicationLocale() { + return g_browser_process->GetApplicationLocale(); +} + content::QuotaPermissionContext* CefContentBrowserClient::CreateQuotaPermissionContext() { return new CefQuotaPermissionContext(); diff --git a/libcef/browser/content_browser_client.h b/libcef/browser/content_browser_client.h index 69003ed2b..478017410 100644 --- a/libcef/browser/content_browser_client.h +++ b/libcef/browser/content_browser_client.h @@ -60,6 +60,7 @@ class CefContentBrowserClient : public content::ContentBrowserClient { content::BrowserContext* context2) override; void AppendExtraCommandLineSwitches(base::CommandLine* command_line, int child_process_id) override; + std::string GetApplicationLocale() override; content::QuotaPermissionContext* CreateQuotaPermissionContext() override; void GetQuotaSettings( content::BrowserContext* context,