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

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

Issue 821453003: Update legacy Tuple-using code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years 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_render_view_host_unittest.cc
diff --git a/chrome/browser/translate/translate_manager_render_view_host_unittest.cc b/chrome/browser/translate/translate_manager_render_view_host_unittest.cc
index 4f207d47b897b1d119897d2b56c0f97fd5751aa3..a9d805b56f74dba8504cf634506a5390f5e88a7c 100644
--- a/chrome/browser/translate/translate_manager_render_view_host_unittest.cc
+++ b/chrome/browser/translate/translate_manager_render_view_host_unittest.cc
@@ -135,14 +135,14 @@ class TranslateManagerRenderViewHostTest
ChromeViewMsg_TranslatePage::ID);
if (!message)
return false;
- Tuple4<int, std::string, std::string, std::string> translate_param;
+ Tuple<int, std::string, std::string, std::string> translate_param;
ChromeViewMsg_TranslatePage::Read(message, &translate_param);
- // Ignore translate_param.a which is the page seq no.
- // Ignore translate_param.b which is the script injected in the page.
+ // Ignore get<0>(translate_param) which is the page seq no.
+ // Ignore get<1>(translate_param) which is the script injected in the page.
if (original_lang)
- *original_lang = translate_param.c;
+ *original_lang = get<2>(translate_param);
if (target_lang)
- *target_lang = translate_param.d;
+ *target_lang = get<3>(translate_param);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698