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

Unified Diff: chromeos/dbus/shill_third_party_vpn_driver_client.cc

Issue 1452853002: Convert vector_as_array to vector::data in //chrome{,cast,os}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@vector-data
Patch Set: Created 5 years, 1 month 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: chromeos/dbus/shill_third_party_vpn_driver_client.cc
diff --git a/chromeos/dbus/shill_third_party_vpn_driver_client.cc b/chromeos/dbus/shill_third_party_vpn_driver_client.cc
index 7a2832516a85ee914ff64141a0efd2f4306ee683..fd2f4d9ad1db1145bead96d47ed5acc72deafa3f 100644
--- a/chromeos/dbus/shill_third_party_vpn_driver_client.cc
+++ b/chromeos/dbus/shill_third_party_vpn_driver_client.cc
@@ -5,7 +5,6 @@
#include "chromeos/dbus/shill_third_party_vpn_driver_client.h"
#include "base/bind.h"
-#include "base/stl_util.h"
#include "chromeos/dbus/shill_third_party_vpn_observer.h"
#include "dbus/bus.h"
#include "dbus/message.h"
@@ -253,9 +252,8 @@ void ShillThirdPartyVpnDriverClientImpl::SendPacket(
dbus::MessageWriter writer(&method_call);
static_assert(sizeof(uint8_t) == sizeof(char),
"Can't reinterpret ip_packet if char is not 8 bit large.");
- writer.AppendArrayOfBytes(
- reinterpret_cast<const uint8_t*>(vector_as_array(&ip_packet)),
- ip_packet.size());
+ writer.AppendArrayOfBytes(reinterpret_cast<const uint8_t*>(ip_packet.data()),
+ ip_packet.size());
GetHelper(object_path_value)
->CallVoidMethodWithErrorCallback(&method_call, callback, error_callback);
}
« no previous file with comments | « chromecast/media/cdm/chromecast_init_data.cc ('k') | chromeos/dbus/shill_third_party_vpn_driver_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698