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

Unified Diff: chrome/browser/cocoa/translate/translate_message_infobar_controller.mm

Issue 3034013: Fetch the translate script regularly (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Synced Created 10 years, 5 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/cocoa/translate/translate_message_infobar_controller.mm
diff --git a/chrome/browser/cocoa/translate/translate_message_infobar_controller.mm b/chrome/browser/cocoa/translate/translate_message_infobar_controller.mm
index db2f46fc347c3382c2a7fba4cf1806839ff09e03..5b4fcafc646d499952ac206fbbc48ef7399cd403 100644
--- a/chrome/browser/cocoa/translate/translate_message_infobar_controller.mm
+++ b/chrome/browser/cocoa/translate/translate_message_infobar_controller.mm
@@ -14,9 +14,9 @@ using TranslateInfoBarUtilities::MoveControl;
if ((self = [super initWithDelegate:delegate])) {
TranslateInfoBarDelegate* delegate = [self delegate];
if (delegate->IsError())
- state_ = TranslateInfoBarDelegate::kTranslationError;
+ state_ = TranslateInfoBarDelegate::TRANSLATION_ERROR;
else
- state_ = TranslateInfoBarDelegate::kTranslating;
+ state_ = TranslateInfoBarDelegate::TRANSLATING;
}
return self;
}
@@ -37,7 +37,7 @@ using TranslateInfoBarUtilities::MoveControl;
- (NSArray*)visibleControls {
NSMutableArray* visibleControls =
[NSMutableArray arrayWithObjects:label1_.get(), nil];
- if (state_ == TranslateInfoBarDelegate::kTranslationError)
+ if (state_ == TranslateInfoBarDelegate::TRANSLATION_ERROR)
[visibleControls addObject:tryAgainButton_];
return visibleControls;
}

Powered by Google App Engine
This is Rietveld 408576698