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

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

Issue 291503008: Remove most of chrome/ and content/ usage from TranslateInfoBarDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments Created 6 years, 7 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_unittest.mm
diff --git a/chrome/browser/ui/cocoa/infobars/translate_infobar_unittest.mm b/chrome/browser/ui/cocoa/infobars/translate_infobar_unittest.mm
index e405c65cd7478596470bdf4fe91995042e49a788..b04b2f77d89ddc130841d900bb7eeacfff4ba293 100644
--- a/chrome/browser/ui/cocoa/infobars/translate_infobar_unittest.mm
+++ b/chrome/browser/ui/cocoa/infobars/translate_infobar_unittest.mm
@@ -17,6 +17,7 @@
#import "chrome/browser/ui/cocoa/infobars/translate_infobar_base.h"
#include "chrome/test/base/testing_profile.h"
#include "components/translate/core/browser/translate_language_list.h"
+#include "components/translate/core/browser/translate_manager.h"
#import "content/public/browser/web_contents.h"
#include "ipc/ipc_message.h"
#import "testing/gmock/include/gmock/gmock.h"
@@ -40,14 +41,17 @@ class MockTranslateInfoBarDelegate : public TranslateInfoBarDelegate {
translate::TranslateStep step,
TranslateErrors::Type error,
PrefService* prefs)
- : TranslateInfoBarDelegate(web_contents,
- step,
- NULL,
- "en",
- "es",
- error,
- prefs,
- false) {}
+ : TranslateInfoBarDelegate(
+ TranslateTabHelper::GetManagerFromWebContents(
+ web_contents)->GetWeakPtr(),
+ false,
+ step,
+ NULL,
+ "en",
+ "es",
+ error,
+ prefs,
+ false) {}
MOCK_METHOD0(Translate, void());
MOCK_METHOD0(RevertTranslation, void());

Powered by Google App Engine
This is Rietveld 408576698