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

Unified Diff: chrome/browser/ui/cocoa/infobars/translate_message_infobar_controller.mm

Issue 378253002: Fix translate namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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/ui/cocoa/infobars/translate_message_infobar_controller.mm
diff --git a/chrome/browser/ui/cocoa/infobars/translate_message_infobar_controller.mm b/chrome/browser/ui/cocoa/infobars/translate_message_infobar_controller.mm
index 53e0a615a4b8ce2f8135da41deefce8f80a9172b..0e11f5905d2269e5f8cf22d2c5a826fabf0f92a6 100644
--- a/chrome/browser/ui/cocoa/infobars/translate_message_infobar_controller.mm
+++ b/chrome/browser/ui/cocoa/infobars/translate_message_infobar_controller.mm
@@ -15,7 +15,7 @@ using InfoBarUtilities::MoveControl;
[self removeOkCancelButtons];
MoveControl(
label1_, translateMessageButton_, spaceBetweenControls_ * 2, true);
- TranslateInfoBarDelegate* delegate = [self delegate];
+ translate::TranslateInfoBarDelegate* delegate = [self delegate];
if ([self delegate]->ShouldShowMessageInfoBarButton()) {
base::string16 buttonText = delegate->GetMessageInfoBarButtonText();
[translateMessageButton_ setTitle:base::SysUTF16ToNSString(buttonText)];
@@ -36,7 +36,7 @@ using InfoBarUtilities::MoveControl;
}
- (void)loadLabelText {
- TranslateInfoBarDelegate* delegate = [self delegate];
+ translate::TranslateInfoBarDelegate* delegate = [self delegate];
base::string16 messageText = delegate->GetMessageInfoBarText();
NSString* string1 = base::SysUTF16ToNSString(messageText);
[label1_ setStringValue:string1];

Powered by Google App Engine
This is Rietveld 408576698