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

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

Issue 8080007: Disable the error reporting option for secured URL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 3 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 | chrome/browser/translate/translate_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/translate/options_menu_model.cc
===================================================================
--- chrome/browser/translate/options_menu_model.cc (revision 103249)
+++ chrome/browser/translate/options_menu_model.cc (working copy)
@@ -88,6 +88,12 @@
return (!translate_infobar_delegate_->IsLanguageBlacklisted() &&
!translate_infobar_delegate_->IsSiteBlacklisted());
+ case IDC_TRANSLATE_REPORT_BAD_LANGUAGE_DETECTION : {
+ // Until we have a secure URL for reporting language detection errors,
+ // we don't report errors that happened on secure URLs.
+ return !translate_infobar_delegate_->tab_contents()->controller().
+ GetActiveEntry()->url().SchemeIsSecure();
+ }
default:
break;
}
« no previous file with comments | « no previous file | chrome/browser/translate/translate_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698