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

Unified Diff: components/translate/core/browser/translate_script.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_script.cc
diff --git a/components/translate/core/browser/translate_script.cc b/components/translate/core/browser/translate_script.cc
index 68b5cffa0841664464194291785ef3ba004c313f..3edff690fd7cf1e15314903c00be068d2364ff56 100644
--- a/components/translate/core/browser/translate_script.cc
+++ b/components/translate/core/browser/translate_script.cc
@@ -21,6 +21,8 @@
#include "net/base/url_util.h"
#include "ui/base/resource/resource_bundle.h"
+namespace translate {
+
namespace {
const int kExpirationDelayDays = 1;
@@ -101,10 +103,8 @@ void TranslateScript::Request(const RequestCallback& callback) {
kJavascriptLoaderCallbackQueryValue);
#endif // !defined(OS_IOS)
- translate_script_url =
- TranslateURLUtil::AddHostLocaleToUrl(translate_script_url);
- translate_script_url =
- TranslateURLUtil::AddApiKeyToUrl(translate_script_url);
+ translate_script_url = AddHostLocaleToUrl(translate_script_url);
+ translate_script_url = AddApiKeyToUrl(translate_script_url);
fetcher_.reset(new TranslateURLFetcher(kFetcherId));
fetcher_->set_extra_request_header(kRequestHeader);
@@ -154,3 +154,5 @@ void TranslateScript::OnScriptFetchComplete(
}
callback_list_.clear();
}
+
+} // namespace translate
« no previous file with comments | « components/translate/core/browser/translate_script.h ('k') | components/translate/core/browser/translate_script_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698