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

Unified Diff: components/translate/core/browser/translate_url_util.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_url_util.cc
diff --git a/components/translate/core/browser/translate_url_util.cc b/components/translate/core/browser/translate_url_util.cc
index 497cdae8292c7b6f9afca276298aa1d8603ad642..fc4105ca9fb401b1bfdbfd6efb86980cf5928a4d 100644
--- a/components/translate/core/browser/translate_url_util.cc
+++ b/components/translate/core/browser/translate_url_util.cc
@@ -8,6 +8,8 @@
#include "google_apis/google_api_keys.h"
#include "net/base/url_util.h"
+namespace translate {
+
namespace {
// Used in all translate URLs to specify API Key.
@@ -19,8 +21,6 @@ const char kHostLocaleQueryName[] = "hl";
} // namespace
-namespace TranslateURLUtil {
-
GURL AddApiKeyToUrl(const GURL& url) {
return net::AppendQueryParameter(url, kApiKeyName, google_apis::GetAPIKey());
}
@@ -33,4 +33,4 @@ GURL AddHostLocaleToUrl(const GURL& url) {
TranslateDownloadManager::GetInstance()->application_locale()));
}
-} // namespace TranslateURLUtil
+} // namespace translate
« no previous file with comments | « components/translate/core/browser/translate_url_util.h ('k') | components/translate/core/common/language_detection_details.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698