Index: chrome/browser/translate/translate_manager.cc |
=================================================================== |
--- chrome/browser/translate/translate_manager.cc (revision 143384) |
+++ chrome/browser/translate/translate_manager.cc (working copy) |
@@ -335,7 +335,10 @@ |
return; |
} |
// When doing a page reload, we don't get a TAB_LANGUAGE_DETERMINED |
James Hawkins
2012/08/07 00:49:13
Drive-by optional nit: Don't use pronouns (we) in
MAD
2012/08/07 01:25:04
Done.
|
- // notification. So we need to explictly initiate the translation. |
+ // notification. So we need to explicitly initiate the translation. |
+ // At least when the page is indeed translatable. |
James Hawkins
2012/08/07 00:49:13
Grammar nit: Sentence fragment.
MAD
2012/08/07 01:25:04
Done.
|
+ if (!helper->language_state().page_translatable()) |
+ return; |
// Note that we delay it as the TranslateManager gets this notification |
// before the WebContents and the WebContents processing might remove the |
// current infobars. Since InitTranslation might add an infobar, it must |