| Index: chrome/browser/translate/translate_infobar_delegate2.h
|
| diff --git a/chrome/browser/translate/translate_infobar_delegate2.h b/chrome/browser/translate/translate_infobar_delegate2.h
|
| index bb535ad3b254936c10c159a855963776918d175e..130c3d5b383d3d315df04ed2dcc7d36e943f1e9e 100644
|
| --- a/chrome/browser/translate/translate_infobar_delegate2.h
|
| +++ b/chrome/browser/translate/translate_infobar_delegate2.h
|
| @@ -49,10 +49,10 @@ class TranslateInfoBarDelegate2 : public InfoBarDelegate {
|
| int GetLanguageCount() const;
|
|
|
| // Returns the ISO code for the language at |index|.
|
| - const std::string& GetLanguageCodeAt(int index) const;
|
| + std::string GetLanguageCodeAt(int index) const;
|
|
|
| // Returns the displayable name for the language at |index|.
|
| - const string16& GetLanguageDisplayableNameAt(int index) const;
|
| + string16 GetLanguageDisplayableNameAt(int index) const;
|
|
|
| TabContents* tab_contents() const { return tab_contents_; }
|
|
|
| @@ -62,8 +62,8 @@ class TranslateInfoBarDelegate2 : public InfoBarDelegate {
|
| int target_language_index() const { return target_language_index_; }
|
|
|
| // Convenience methods.
|
| - const std::string& GetOriginalLanguageCode() const;
|
| - const std::string& GetTargetLanguageCode() const;
|
| + std::string GetOriginalLanguageCode() const;
|
| + std::string GetTargetLanguageCode() const;
|
|
|
| // Called by the InfoBar to notify that the original/target language has
|
| // changed and is now the language at |language_index|.
|
| @@ -89,7 +89,8 @@ class TranslateInfoBarDelegate2 : public InfoBarDelegate {
|
|
|
| // InfoBarDelegate implementation:
|
| virtual InfoBar* CreateInfoBar();
|
| - void InfoBarDismissed();
|
| + virtual void InfoBarDismissed();
|
| + virtual void InfoBarClosed();
|
| virtual SkBitmap* GetIcon() const;
|
| virtual InfoBarDelegate::Type GetInfoBarType();
|
| virtual TranslateInfoBarDelegate2* AsTranslateInfoBarDelegate2() {
|
|
|