| Index: chrome/browser/android/fullscreen/fullscreen_infobar_delegate.cc
|
| diff --git a/chrome/browser/android/fullscreen/fullscreen_infobar_delegate.cc b/chrome/browser/android/fullscreen/fullscreen_infobar_delegate.cc
|
| index 80ebd0cdceb462c44a8d117830b2283b0b864e09..074333e2d050becc05347883d94dc256e8f51462 100644
|
| --- a/chrome/browser/android/fullscreen/fullscreen_infobar_delegate.cc
|
| +++ b/chrome/browser/android/fullscreen/fullscreen_infobar_delegate.cc
|
| @@ -9,11 +9,8 @@
|
| #include "chrome/browser/android/android_theme_resources.h"
|
| #include "chrome/browser/android/tab_android.h"
|
| #include "chrome/browser/infobars/infobar_service.h"
|
| -#include "chrome/browser/profiles/profile_manager.h"
|
| -#include "chrome/common/pref_names.h"
|
| #include "chrome/grit/generated_resources.h"
|
| #include "components/infobars/core/infobar.h"
|
| -#include "components/prefs/pref_service.h"
|
| #include "components/url_formatter/elide_url.h"
|
| #include "grit/components_strings.h"
|
| #include "jni/FullscreenInfoBarDelegate_jni.h"
|
| @@ -70,13 +67,9 @@ int FullscreenInfoBarDelegate::GetIconId() const {
|
| }
|
|
|
| base::string16 FullscreenInfoBarDelegate::GetMessageText() const {
|
| - Profile* profile =
|
| - ProfileManager::GetActiveUserProfile()->GetOriginalProfile();
|
| - std::string language =
|
| - profile->GetPrefs()->GetString(prefs::kAcceptLanguages);
|
| return l10n_util::GetStringFUTF16(
|
| IDS_FULLSCREEN_INFOBAR_TEXT,
|
| - url_formatter::FormatUrlForSecurityDisplay(origin_, language));
|
| + url_formatter::FormatUrlForSecurityDisplay(origin_));
|
| }
|
|
|
| base::string16 FullscreenInfoBarDelegate::GetButtonLabel(
|
|
|