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

Unified Diff: chrome/browser/translate/chrome_translate_client.cc

Issue 2116653003: [Translate] Honors "IsTooOftenDenied" policy in incognito bubble (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/translate/chrome_translate_client.cc
diff --git a/chrome/browser/translate/chrome_translate_client.cc b/chrome/browser/translate/chrome_translate_client.cc
index ca20515387c9ea501c4ae15b5355d13b76790f90..6bf702d1fce2d69070b1485488969f93add3ee60 100644
--- a/chrome/browser/translate/chrome_translate_client.cc
+++ b/chrome/browser/translate/chrome_translate_client.cc
@@ -176,12 +176,9 @@ void ChromeTranslateClient::ShowTranslateUI(
return;
}
- if (!triggered_from_menu) {
- if (web_contents()->GetBrowserContext()->IsOffTheRecord())
- return;
- if (GetTranslatePrefs()->IsTooOftenDenied(source_language))
- return;
- }
+ if (!triggered_from_menu &&
+ GetTranslatePrefs()->IsTooOftenDenied(source_language))
+ return;
}
ShowBubble(step, error_type);
}
« 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