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

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

Issue 240193003: Move Infobars core files to the Infobars component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nib name on mac 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/ui/cocoa/infobars/translate_infobar_base.mm
diff --git a/chrome/browser/ui/cocoa/infobars/translate_infobar_base.mm b/chrome/browser/ui/cocoa/infobars/translate_infobar_base.mm
index 5f3ca0b0558eaa85f73b600f9ffe9f2b5820d84c..dc2797a9e3626f7dba433f1ee519db90b9872c22 100644
--- a/chrome/browser/ui/cocoa/infobars/translate_infobar_base.mm
+++ b/chrome/browser/ui/cocoa/infobars/translate_infobar_base.mm
@@ -28,10 +28,10 @@ using InfoBarUtilities::CreateLabel;
using InfoBarUtilities::AddMenuItem;
// static
-scoped_ptr<InfoBar> TranslateInfoBarDelegate::CreateInfoBar(
+scoped_ptr<infobars::InfoBar> TranslateInfoBarDelegate::CreateInfoBar(
scoped_ptr<TranslateInfoBarDelegate> delegate) {
scoped_ptr<InfoBarCocoa> infobar(
- new InfoBarCocoa(delegate.PassAs<InfoBarDelegate>()));
+ new InfoBarCocoa(delegate.PassAs<infobars::InfoBarDelegate>()));
base::scoped_nsobject<TranslateInfoBarControllerBase> infobar_controller;
switch (infobar->delegate()->AsTranslateInfoBarDelegate()->translate_step()) {
case translate::TRANSLATE_STEP_BEFORE_TRANSLATE:
@@ -51,7 +51,7 @@ scoped_ptr<InfoBar> TranslateInfoBarDelegate::CreateInfoBar(
NOTREACHED();
}
infobar->set_controller(infobar_controller);
- return infobar.PassAs<InfoBar>();
+ return infobar.PassAs<infobars::InfoBar>();
}
@implementation TranslateInfoBarControllerBase (FrameChangeObserver)
« no previous file with comments | « chrome/browser/ui/cocoa/infobars/infobar_utilities.mm ('k') | chrome/browser/ui/cocoa/infobars/translate_infobar_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698