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

Unified Diff: chrome/browser/ui/translate/translate_bubble_model_impl.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/translate/translate_bubble_model_impl.cc
diff --git a/chrome/browser/ui/translate/translate_bubble_model_impl.cc b/chrome/browser/ui/translate/translate_bubble_model_impl.cc
index 195e886a8385effaf1d48380e5aba8642cfc2cbf..20417d00be73cf6c6e82b6de1f498cc1ccbb9733 100644
--- a/chrome/browser/ui/translate/translate_bubble_model_impl.cc
+++ b/chrome/browser/ui/translate/translate_bubble_model_impl.cc
@@ -10,9 +10,10 @@
TranslateBubbleModelImpl::TranslateBubbleModelImpl(
translate::TranslateStep step,
- scoped_ptr<TranslateUIDelegate> ui_delegate)
+ scoped_ptr<translate::TranslateUIDelegate> ui_delegate)
: ui_delegate_(ui_delegate.Pass()),
- view_state_transition_(TranslateStepToViewState(step)) {}
+ view_state_transition_(TranslateStepToViewState(step)) {
+}
TranslateBubbleModelImpl::~TranslateBubbleModelImpl() {
}
@@ -45,7 +46,8 @@ void TranslateBubbleModelImpl::SetViewState(
view_state_transition_.SetViewState(view_state);
}
-void TranslateBubbleModelImpl::ShowError(TranslateErrors::Type error_type) {
+void TranslateBubbleModelImpl::ShowError(
+ translate::TranslateErrors::Type error_type) {
ui_delegate_->OnErrorShown(error_type);
}
@@ -106,7 +108,8 @@ void TranslateBubbleModelImpl::TranslationDeclined(bool explicitly_closed) {
}
bool TranslateBubbleModelImpl::IsPageTranslatedInCurrentLanguages() const {
- const LanguageState& language_state = ui_delegate_->GetLanguageState();
+ const translate::LanguageState& language_state =
+ ui_delegate_->GetLanguageState();
return ui_delegate_->GetOriginalLanguageCode() ==
language_state.original_language() &&
ui_delegate_->GetTargetLanguageCode() ==

Powered by Google App Engine
This is Rietveld 408576698