diff options
Diffstat (limited to 'chrome/browser/encoding_menu_controller_delegate.cc')
-rw-r--r-- | chrome/browser/encoding_menu_controller_delegate.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/chrome/browser/encoding_menu_controller_delegate.cc b/chrome/browser/encoding_menu_controller_delegate.cc index 62572d0..5c9088f 100644 --- a/chrome/browser/encoding_menu_controller_delegate.cc +++ b/chrome/browser/encoding_menu_controller_delegate.cc @@ -9,7 +9,7 @@ #include "chrome/browser/browser_process.h" #include "chrome/browser/character_encoding.h" #include "chrome/browser/profile.h" -#include "chrome/browser/tab_contents/web_contents.h" +#include "chrome/browser/tab_contents/tab_contents.h" #include "chrome/common/l10n_util.h" #include "chrome/common/pref_names.h" #include "chrome/common/pref_service.h" @@ -26,9 +26,7 @@ bool EncodingMenuControllerDelegate::IsItemChecked(int id) const { TabContents* current_tab = browser_->GetSelectedTabContents(); if (!current_tab) return false; - std::wstring encoding; - if (current_tab->AsWebContents()) - encoding = current_tab->AsWebContents()->encoding(); + std::wstring encoding = current_tab->encoding(); if (encoding.empty()) encoding = profile->GetPrefs()->GetString(prefs::kDefaultCharset); switch (id) { |