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

Unified Diff: components/translate/core/browser/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
Index: components/translate/core/browser/translate_url_util.cc
diff --git a/chrome/browser/translate/translate_url_util.cc b/components/translate/core/browser/translate_url_util.cc
similarity index 86%
rename from chrome/browser/translate/translate_url_util.cc
rename to components/translate/core/browser/translate_url_util.cc
index 047f4afee89429e826f3e6862c1ec0dde77ace3b..497cdae8292c7b6f9afca276298aa1d8603ad642 100644
--- a/chrome/browser/translate/translate_url_util.cc
+++ b/components/translate/core/browser/translate_url_util.cc
@@ -2,9 +2,8 @@
// 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 "components/translate/core/browser/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"
@@ -30,7 +29,7 @@ GURL AddHostLocaleToUrl(const GURL& url) {
return net::AppendQueryParameter(
url,
kHostLocaleQueryName,
- TranslateManager::GetLanguageCode(
+ TranslateDownloadManager::GetLanguageCode(
TranslateDownloadManager::GetInstance()->application_locale()));
}
« no previous file with comments | « components/translate/core/browser/translate_url_util.h ('k') | components/translate/core/common/translate_pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698