Index: chrome/browser/tab_contents/language_state.h |
diff --git a/chrome/browser/tab_contents/language_state.h b/chrome/browser/tab_contents/language_state.h |
index b3728a32a37f7ccdc27e8751dac58ac5fca2b2e0..c4563b1c448546718724275520853901cc4cc27a 100644 |
--- a/chrome/browser/tab_contents/language_state.h |
+++ b/chrome/browser/tab_contents/language_state.h |
@@ -23,7 +23,7 @@ |
class LanguageState { |
public: |
explicit LanguageState(NavigationController* nav_controller); |
- ~LanguageState(); |
+ virtual ~LanguageState(); |
// Should be called when the page did a new navigation (whether it is a main |
// frame or sub-frame navigation). |
@@ -44,12 +44,14 @@ class LanguageState { |
// Returns true if the current page in the associated tab has been translated. |
bool IsPageTranslated() const { return original_lang_ != current_lang_; } |
- const std::string& original_language() const { return original_lang_; } |
+ virtual const std::string& original_language() const { |
+ return original_lang_; |
+ } |
void set_current_language(const std::string& language) { |
current_lang_ = language; |
} |
- const std::string& current_language() const { return current_lang_; } |
+ virtual const std::string& current_language() const { return current_lang_; } |
bool page_translatable() const { return page_translatable_; } |