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

Unified Diff: trunk/src/chrome/browser/translate/translate_infobar_delegate.cc

Issue 296003014: Revert 272217 "LanguageState should be owned by TranslateManager" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 7 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
Index: trunk/src/chrome/browser/translate/translate_infobar_delegate.cc
===================================================================
--- trunk/src/chrome/browser/translate/translate_infobar_delegate.cc (revision 272260)
+++ trunk/src/chrome/browser/translate/translate_infobar_delegate.cc (working copy)
@@ -79,7 +79,8 @@
// Do not create the after translate infobar if we are auto translating.
if (((step == translate::TRANSLATE_STEP_AFTER_TRANSLATE) ||
(step == translate::TRANSLATE_STEP_TRANSLATING)) &&
- translate_manager->GetLanguageState().InTranslateNavigation()) {
+ translate_manager->translate_client()->GetTranslateDriver()
+ ->GetLanguageState().InTranslateNavigation()) {
return;
}
« no previous file with comments | « trunk/src/chrome/browser/policy/policy_browsertest.cc ('k') | trunk/src/chrome/browser/translate/translate_tab_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698