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

Unified Diff: chrome/browser/ui/browser_content_translate_driver_observer.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/ui/browser_content_translate_driver_observer.cc
diff --git a/chrome/browser/ui/browser_content_translate_driver_observer.cc b/chrome/browser/ui/browser_content_translate_driver_observer.cc
index 573d247813a558e17c77c74ac42eafa00540e3cf..06ff312ce6c681d2b7695754d120d89e21fcc575 100644
--- a/chrome/browser/ui/browser_content_translate_driver_observer.cc
+++ b/chrome/browser/ui/browser_content_translate_driver_observer.cc
@@ -23,7 +23,8 @@ void BrowserContentTranslateDriverObserver::OnIsPageTranslatedChanged(
if (source == browser_->tab_strip_model()->GetActiveWebContents()) {
ChromeTranslateClient* chrome_translate_client =
ChromeTranslateClient::FromWebContents(source);
- LanguageState& language_state = chrome_translate_client->GetLanguageState();
+ translate::LanguageState& language_state =
+ chrome_translate_client->GetLanguageState();
browser_->window()->SetTranslateIconToggled(
language_state.IsPageTranslated());
}

Powered by Google App Engine
This is Rietveld 408576698