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

Unified Diff: chrome/browser/ui/webui/options/language_options_handler_common.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: chrome/browser/ui/webui/options/language_options_handler_common.cc
diff --git a/chrome/browser/ui/webui/options/language_options_handler_common.cc b/chrome/browser/ui/webui/options/language_options_handler_common.cc
index 5c1131d660917698621d7a269e4f51023347a0cd..4059e1e565a5257ba84fbf9c101289b9cdddeb8b 100644
--- a/chrome/browser/ui/webui/options/language_options_handler_common.cc
+++ b/chrome/browser/ui/webui/options/language_options_handler_common.cc
@@ -27,6 +27,7 @@
#include "chrome/common/chrome_switches.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/spellcheck_common.h"
+#include "components/translate/core/browser/translate_download_manager.h"
#include "content/public/browser/user_metrics.h"
#include "content/public/browser/web_ui.h"
#include "grit/chromium_strings.h"
@@ -130,7 +131,7 @@ void LanguageOptionsHandlerCommon::GetLocalizedValues(
default_target_language);
std::vector<std::string> languages;
- TranslateManager::GetSupportedLanguages(&languages);
+ TranslateDownloadManager::GetSupportedLanguages(&languages);
base::ListValue* languages_list = new base::ListValue();
for (std::vector<std::string>::iterator it = languages.begin();

Powered by Google App Engine
This is Rietveld 408576698