Index: components/translate/core/browser/translate_ui_delegate.h |
diff --git a/components/translate/core/browser/translate_ui_delegate.h b/components/translate/core/browser/translate_ui_delegate.h |
index 82a4bc9bef20c5362ca2bf75e28f7ac227afb670..58757a5efa1dd2f0ec962da517f131d4e09eb6bb 100644 |
--- a/components/translate/core/browser/translate_ui_delegate.h |
+++ b/components/translate/core/browser/translate_ui_delegate.h |
@@ -88,6 +88,15 @@ class TranslateUIDelegate { |
void RevertTranslation(); |
// Processes when the user declines translation. |
+ // The function name is not accurate. It only means the user did not take |
+ // affirmative action after the translation ui show up. The user either |
+ // actively decline the translation or ignore the prompt of translation. |
+ // Pass explicitly_closed as true if user explicityly decline the |
groby-ooo-7-16
2016/01/28 21:17:28
nit: |explicitly_closed|, please - here and elsewh
ftang
2016/01/28 22:37:21
Done.
|
+ // translation. |
+ // Pass explicitly_closed as false if the translation UI is dismissed |
+ // implicit by some user actions which ignore the translation UI, |
+ // such as switch to a new tab/window or navigate to another page by |
+ // click a link. |
void TranslationDeclined(bool explicitly_closed); |
// Returns true if the current language is blocked. |