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

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

Issue 14494004: Added the 'Translation Logs' tab to chrome://translate-internals/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: first commit Created 7 years, 7 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/translate/translate_manager_browsertest.cc
diff --git a/chrome/browser/translate/translate_manager_browsertest.cc b/chrome/browser/translate/translate_manager_browsertest.cc
index 1d4e4fc7098e6fcf11bf3f049ef7c322d5407501..573f99c2302f42f8afd2ee78983d3b2b7e03c9af 100644
--- a/chrome/browser/translate/translate_manager_browsertest.cc
+++ b/chrome/browser/translate/translate_manager_browsertest.cc
@@ -112,10 +112,12 @@ class TranslateManagerBrowserTest : public ChromeRenderViewHostTestHarness,
void SimulateOnTranslateLanguageDetermined(const std::string& lang,
bool page_translatable) {
+ LanguageDetectionDetails details;
+ details.adopted_language = lang;
RenderViewHostTester::TestOnMessageReceived(
rvh(),
ChromeViewHostMsg_TranslateLanguageDetermined(
- 0, lang, page_translatable));
+ 0, details, page_translatable));
}
bool GetTranslateMessage(int* page_id,

Powered by Google App Engine
This is Rietveld 408576698