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

Unified Diff: chrome/browser/translate/translate_infobar_delegate.h

Issue 230453004: Remove InfoBarDelegate::web_contents() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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
Index: chrome/browser/translate/translate_infobar_delegate.h
diff --git a/chrome/browser/translate/translate_infobar_delegate.h b/chrome/browser/translate/translate_infobar_delegate.h
index f45af39291fed7a5e43704471210fb53a1082585..1e9312aeeb2ab77b40eb3fe266c9a0999ef812bd 100644
--- a/chrome/browser/translate/translate_infobar_delegate.h
+++ b/chrome/browser/translate/translate_infobar_delegate.h
@@ -144,6 +144,9 @@ class TranslateInfoBarDelegate : public InfoBarDelegate {
bool ShouldShowNeverTranslateShortcut();
bool ShouldShowAlwaysTranslateShortcut();
+ // Returns the WebContents associated with the TranslateInfoBarDelegate.
+ content::WebContents* GetWebContents();
blundell 2014/04/09 12:35:12 Does this need to be public?
droger 2014/04/09 12:44:06 Yes, this is used from chrome/browser/translate/op
+
// Convenience method that returns the displayable language name for
// |language_code| in the current application locale.
static base::string16 GetLanguageDisplayableName(

Powered by Google App Engine
This is Rietveld 408576698