Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2564)

Unified Diff: chrome/browser/tab_contents/language_state.h

Issue 3226001: Detecting form locale (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Unit test for top websites Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/autofill/form_structure_unittest.cc ('k') | chrome/browser/tab_contents/tab_contents.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_; }
« no previous file with comments | « chrome/browser/autofill/form_structure_unittest.cc ('k') | chrome/browser/tab_contents/tab_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698