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

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

Issue 11747014: Translate infobar delegate: name the "type_" and "error_" fields "infobar_type_" and "error_type_" … (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 12 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/policy/policy_browsertest.cc ('k') | chrome/browser/translate/translate_infobar_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/translate/translate_infobar_delegate.h
===================================================================
--- chrome/browser/translate/translate_infobar_delegate.h (revision 174909)
+++ chrome/browser/translate/translate_infobar_delegate.h (working copy)
@@ -75,9 +75,9 @@
return languages_[index].second;
}
- Type type() const { return type_; }
+ Type infobar_type() const { return infobar_type_; }
- TranslateErrors::Type error() const { return error_; }
+ TranslateErrors::Type error_type() const { return error_type_; }
size_t original_language_index() const { return original_language_index_; }
void set_original_language_index(size_t language_index) {
@@ -102,7 +102,7 @@
// Returns true if the current infobar indicates an error (in which case it
// should get a yellow background instead of a blue one).
- bool IsError() const { return type_ == TRANSLATION_ERROR; }
+ bool IsError() const { return infobar_type_ == TRANSLATION_ERROR; }
// Returns what kind of background fading effect the infobar should use when
// its is shown.
@@ -167,12 +167,12 @@
protected:
// For testing.
TranslateInfoBarDelegate(Type infobar_type,
- TranslateErrors::Type error,
+ TranslateErrors::Type error_type,
InfoBarService* infobar_service,
PrefService* prefs,
const std::string& original_language,
const std::string& target_language);
- Type type_;
+ Type infobar_type_;
sky 2013/01/07 16:44:50 style guide says no protected members.
Peter Kasting 2013/01/07 16:55:06 Yep, I'm fixing this in a separate change.
private:
typedef std::pair<std::string, string16> LanguageNamePair;
@@ -214,7 +214,7 @@
size_t target_language_index_;
// The error that occurred when trying to translate (NONE if no error).
- TranslateErrors::Type error_;
+ TranslateErrors::Type error_type_;
// The translation related preferences.
TranslatePrefs prefs_;
« no previous file with comments | « chrome/browser/policy/policy_browsertest.cc ('k') | chrome/browser/translate/translate_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698