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

Unified Diff: chrome/browser/translate/translate_url_util.cc

Issue 143003020: Move TranslateLanguageList to the Translate component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@removeDelegate
Patch Set: rebase Created 6 years, 11 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
« no previous file with comments | « chrome/browser/translate/translate_url_util.h ('k') | chrome/browser/ui/browser_ui_prefs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/translate/translate_url_util.cc
diff --git a/chrome/browser/translate/translate_url_util.cc b/chrome/browser/translate/translate_url_util.cc
deleted file mode 100644
index 047f4afee89429e826f3e6862c1ec0dde77ace3b..0000000000000000000000000000000000000000
--- a/chrome/browser/translate/translate_url_util.cc
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/translate/translate_url_util.h"
-
-#include "chrome/browser/translate/translate_manager.h"
-#include "components/translate/core/browser/translate_download_manager.h"
-#include "google_apis/google_api_keys.h"
-#include "net/base/url_util.h"
-
-namespace {
-
-// Used in all translate URLs to specify API Key.
-const char kApiKeyName[] = "key";
-
-// Used in kTranslateScriptURL and kLanguageListFetchURL to specify the
-// application locale.
-const char kHostLocaleQueryName[] = "hl";
-
-} // namespace
-
-namespace TranslateURLUtil {
-
-GURL AddApiKeyToUrl(const GURL& url) {
- return net::AppendQueryParameter(url, kApiKeyName, google_apis::GetAPIKey());
-}
-
-GURL AddHostLocaleToUrl(const GURL& url) {
- return net::AppendQueryParameter(
- url,
- kHostLocaleQueryName,
- TranslateManager::GetLanguageCode(
- TranslateDownloadManager::GetInstance()->application_locale()));
-}
-
-} // namespace TranslateURLUtil
« no previous file with comments | « chrome/browser/translate/translate_url_util.h ('k') | chrome/browser/ui/browser_ui_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698