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

Unified Diff: chrome/browser/ui/views/translate/translate_bubble_view.cc

Issue 1958283003: Also call SetAlwaysTranslate when the button id is BUTTON_ID_TRANSLATE in the base view (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/translate/translate_bubble_view.cc
diff --git a/chrome/browser/ui/views/translate/translate_bubble_view.cc b/chrome/browser/ui/views/translate/translate_bubble_view.cc
index 2db03357da369cc5e935da4254e6183762efeef1..6b4dba941d56d103489d88e2e49abdd103dbe5a1 100644
--- a/chrome/browser/ui/views/translate/translate_bubble_view.cc
+++ b/chrome/browser/ui/views/translate/translate_bubble_view.cc
@@ -396,6 +396,8 @@ void TranslateBubbleView::HandleButtonPressed(
TranslateBubbleView::ButtonID sender_id) {
switch (sender_id) {
case BUTTON_ID_TRANSLATE: {
+ if (always_translate_checkbox_)
+ model_->SetAlwaysTranslate(always_translate_checkbox_->checked());
model_->Translate();
ReportUiAction(translate::TRANSLATE_BUTTON_CLICKED);
break;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698