diff options
author | toyoshim@chromium.org <toyoshim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-15 16:46:06 +0000 |
---|---|---|
committer | toyoshim@chromium.org <toyoshim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-15 16:46:06 +0000 |
commit | 11a6264819181a71c80b5417e88807d893c2c201 (patch) | |
tree | bba54d4b03b63f4cdc709be8a735aab6b657b759 | |
parent | ea5451957df86623f9dd52ad2dd2c12c5ecd70a6 (diff) | |
download | chromium_src-11a6264819181a71c80b5417e88807d893c2c201.zip chromium_src-11a6264819181a71c80b5417e88807d893c2c201.tar.gz chromium_src-11a6264819181a71c80b5417e88807d893c2c201.tar.bz2 |
Translate: enable bad language detection reports for secure pages
Now, Chrome uses a secure URL for reporting feedbacks. We don't have to
restrict feedbacks against secure pages any more.
BUG=176457
Review URL: https://chromiumcodereview.appspot.com/12261053
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182737 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/translate/options_menu_model.cc | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/chrome/browser/translate/options_menu_model.cc b/chrome/browser/translate/options_menu_model.cc index e00d8ef..a289364 100644 --- a/chrome/browser/translate/options_menu_model.cc +++ b/chrome/browser/translate/options_menu_model.cc @@ -85,18 +85,6 @@ bool OptionsMenuModel::IsCommandIdEnabled(int command_id) const { 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. - DCHECK(translate_infobar_delegate_ != NULL); - DCHECK(translate_infobar_delegate_->owner() != NULL); - DCHECK(translate_infobar_delegate_->owner()->GetWebContents() != NULL); - NavigationEntry* entry = translate_infobar_delegate_->owner()-> - GetWebContents()->GetController().GetActiveEntry(); - // Delegate and tab contents should never be NULL, but active entry - // can be NULL when running tests. We want to return false if NULL. - return (entry != NULL) && !entry->GetURL().SchemeIsSecure(); - } default: break; } |