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

Unified Diff: components/translate/core/browser/translate_manager.cc

Issue 378253002: Fix translate namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing android build errors 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: components/translate/core/browser/translate_manager.cc
diff --git a/components/translate/core/browser/translate_manager.cc b/components/translate/core/browser/translate_manager.cc
index 31b3fc50ba5658b933a75f7452815022ee8ed76f..6fa1aa49a0d98c5c66878e00de71b1622100b90e 100644
--- a/components/translate/core/browser/translate_manager.cc
+++ b/components/translate/core/browser/translate_manager.cc
@@ -31,6 +31,8 @@
#include "net/base/url_util.h"
#include "net/http/http_status_code.h"
+namespace translate {
+
namespace {
// Callbacks for translate errors.
@@ -272,8 +274,8 @@ void TranslateManager::ReportLanguageDetectionError() {
kSourceLanguageQueryName,
language_state_.original_language());
- report_error_url = TranslateURLUtil::AddHostLocaleToUrl(report_error_url);
- report_error_url = TranslateURLUtil::AddApiKeyToUrl(report_error_url);
+ report_error_url = translate::AddHostLocaleToUrl(report_error_url);
+ report_error_url = translate::AddApiKeyToUrl(report_error_url);
translate_client_->ShowReportLanguageDetectionErrorUI(report_error_url);
}
@@ -387,3 +389,5 @@ std::string TranslateManager::GetAutoTargetLanguage(
LanguageState& TranslateManager::GetLanguageState() {
return language_state_;
}
+
+} // namespace translate
« no previous file with comments | « components/translate/core/browser/translate_manager.h ('k') | components/translate/core/browser/translate_prefs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698