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

Unified Diff: chrome/browser/policy/policy_browsertest.cc

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/policy/policy_browsertest.cc
diff --git a/chrome/browser/policy/policy_browsertest.cc b/chrome/browser/policy/policy_browsertest.cc
index ea59a6d48b26cbc903888e8e0d7e6e3538838fe1..3f7d89367f59e74173b14ae5dc9c273ce893ff1d 100644
--- a/chrome/browser/policy/policy_browsertest.cc
+++ b/chrome/browser/policy/policy_browsertest.cc
@@ -1906,7 +1906,8 @@ IN_PROC_BROWSER_TEST_F(PolicyTest, DISABLED_TranslateEnabled) {
ChromeTranslateClient* chrome_translate_client =
ChromeTranslateClient::FromWebContents(contents);
ASSERT_TRUE(chrome_translate_client);
- LanguageState& language_state = chrome_translate_client->GetLanguageState();
+ translate::LanguageState& language_state =
+ chrome_translate_client->GetLanguageState();
EXPECT_EQ("fr", language_state.original_language());
EXPECT_TRUE(language_state.page_needs_translation());
EXPECT_FALSE(language_state.translation_pending());
@@ -1916,7 +1917,7 @@ IN_PROC_BROWSER_TEST_F(PolicyTest, DISABLED_TranslateEnabled) {
// Verify that the translate infobar showed up.
ASSERT_EQ(1u, infobar_service->infobar_count());
infobars::InfoBar* infobar = infobar_service->infobar_at(0);
- TranslateInfoBarDelegate* translate_infobar_delegate =
+ translate::TranslateInfoBarDelegate* translate_infobar_delegate =
infobar->delegate()->AsTranslateInfoBarDelegate();
ASSERT_TRUE(translate_infobar_delegate);
EXPECT_EQ(translate::TRANSLATE_STEP_BEFORE_TRANSLATE,

Powered by Google App Engine
This is Rietveld 408576698