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

Unified Diff: ppapi/proxy/resource_message_test_sink.cc

Issue 1772763002: Replace base::Tuple in //ppapi with std::tuple (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update #include Created 4 years, 9 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 | « ppapi/proxy/ppapi_proxy_test.cc ('k') | ppapi/proxy/websocket_resource_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/resource_message_test_sink.cc
diff --git a/ppapi/proxy/resource_message_test_sink.cc b/ppapi/proxy/resource_message_test_sink.cc
index 4047d59dd5efc287c243ab740b3807916b6b9d7b..864f72c4f6f6eb939c6a0b301097a7489f2f5710 100644
--- a/ppapi/proxy/resource_message_test_sink.cc
+++ b/ppapi/proxy/resource_message_test_sink.cc
@@ -6,6 +6,8 @@
#include <stddef.h>
+#include <tuple>
+
#include "ppapi/proxy/ppapi_messages.h"
#include "ppapi/proxy/resource_message_params.h"
#include "ppapi/proxy/serialized_handle.h"
@@ -26,8 +28,8 @@ std::vector<std::pair<Params, IPC::Message>> GetAllResourceMessagesMatching(
if (msg->type() == WrapperMessage::ID) {
typename WrapperMessage::Param params;
WrapperMessage::Read(msg, &params);
- Params cur_params = base::get<0>(params);
- IPC::Message cur_msg = base::get<1>(params);
+ Params cur_params = std::get<0>(params);
+ IPC::Message cur_msg = std::get<1>(params);
if (cur_msg.type() == id) {
result.push_back(std::make_pair(cur_params, cur_msg));
}
@@ -131,8 +133,8 @@ bool ResourceSyncCallHandler::OnMessageReceived(const IPC::Message& msg) {
bool success = PpapiHostMsg_ResourceSyncCall::ReadSendParam(
&msg, &send_params);
DCHECK(success);
- ResourceMessageCallParams call_params = base::get<0>(send_params);
- IPC::Message call_msg = base::get<1>(send_params);
+ ResourceMessageCallParams call_params = std::get<0>(send_params);
+ IPC::Message call_msg = std::get<1>(send_params);
if (call_msg.type() != incoming_type_)
return false;
IPC::Message* wrapper_reply_msg = IPC::SyncMessage::GenerateReply(&msg);
« no previous file with comments | « ppapi/proxy/ppapi_proxy_test.cc ('k') | ppapi/proxy/websocket_resource_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698