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

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

Issue 3413026: Landing r60095 to the M7 branch.... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/517/src/
Patch Set: Created 10 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 | « chrome/browser/autofill/autofill_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/translate/translate_manager.cc
===================================================================
--- chrome/browser/translate/translate_manager.cc (revision 60095)
+++ chrome/browser/translate/translate_manager.cc (working copy)
@@ -608,16 +608,10 @@
TranslateInfoBarDelegate* TranslateManager::GetTranslateInfoBarDelegate(
TabContents* tab) {
for (int i = 0; i < tab->infobar_delegate_count(); ++i) {
- InfoBarDelegate* delegate = tab->GetInfoBarDelegateAt(i);
- if (!delegate) {
- // Please let jcivelli know if you hit this and how you got to that point.
- NOTREACHED();
- continue;
- }
- TranslateInfoBarDelegate* translate_delegate =
- delegate->AsTranslateInfoBarDelegate();
- if (translate_delegate)
- return translate_delegate;
+ TranslateInfoBarDelegate* delegate =
+ tab->GetInfoBarDelegateAt(i)->AsTranslateInfoBarDelegate();
+ if (delegate)
+ return delegate;
}
return NULL;
}
« no previous file with comments | « chrome/browser/autofill/autofill_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698