Commit 1d1916b2 authored by fgorski's avatar fgorski Committed by Commit bot

Fixing the locale problem in scope approval dialog

BUG=285481
R=courage@chromium.org

Review URL: https://codereview.chromium.org/591703002

Cr-Commit-Position: refs/heads/master@{#296142}
parent 8652b92e
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include "extensions/browser/event_router.h" #include "extensions/browser/event_router.h"
#include "extensions/browser/extension_function_dispatcher.h" #include "extensions/browser/extension_function_dispatcher.h"
#include "extensions/common/extension.h" #include "extensions/common/extension.h"
#include "extensions/common/extension_l10n_util.h"
#include "extensions/common/permissions/permission_set.h" #include "extensions/common/permissions/permission_set.h"
#include "extensions/common/permissions/permissions_data.h" #include "extensions/common/permissions/permissions_data.h"
#include "google_apis/gaia/gaia_urls.h" #include "google_apis/gaia/gaia_urls.h"
...@@ -775,8 +776,7 @@ void IdentityGetAuthTokenFunction::ShowLoginPopup() { ...@@ -775,8 +776,7 @@ void IdentityGetAuthTokenFunction::ShowLoginPopup() {
void IdentityGetAuthTokenFunction::ShowOAuthApprovalDialog( void IdentityGetAuthTokenFunction::ShowOAuthApprovalDialog(
const IssueAdviceInfo& issue_advice) { const IssueAdviceInfo& issue_advice) {
const std::string locale = g_browser_process->local_state()->GetString( const std::string locale = extension_l10n_util::CurrentLocaleOrDefault();
prefs::kApplicationLocale);
gaia_web_auth_flow_.reset(new GaiaWebAuthFlow( gaia_web_auth_flow_.reset(new GaiaWebAuthFlow(
this, GetProfile(), token_key_.get(), oauth2_client_id_, locale)); this, GetProfile(), token_key_.get(), oauth2_client_id_, locale));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment