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

Unified Diff: device/bluetooth/dbus/bluetooth_le_advertisement_service_provider.cc

Issue 1471043004: Convert various vector_as_array calls to vector::data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
« no previous file with comments | « no previous file | device/serial/buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/dbus/bluetooth_le_advertisement_service_provider.cc
diff --git a/device/bluetooth/dbus/bluetooth_le_advertisement_service_provider.cc b/device/bluetooth/dbus/bluetooth_le_advertisement_service_provider.cc
index e981124481fb4d4566750cd1820c734a534a0515..ce50bcac5fb07b13dd5e61527143ae576abea5e7 100644
--- a/device/bluetooth/dbus/bluetooth_le_advertisement_service_provider.cc
+++ b/device/bluetooth/dbus/bluetooth_le_advertisement_service_provider.cc
@@ -7,7 +7,6 @@
#include "base/bind.h"
#include "base/logging.h"
#include "base/memory/ref_counted.h"
-#include "base/stl_util.h"
#include "base/threading/platform_thread.h"
#include "dbus/exported_object.h"
#include "dbus/message.h"
@@ -338,8 +337,7 @@ class BluetoothAdvertisementServiceProviderImpl
array_writer.OpenDictEntry(&entry_writer);
entry_writer.AppendUint32(m.first);
- entry_writer.AppendArrayOfBytes(vector_as_array(&m.second),
- m.second.size());
+ entry_writer.AppendArrayOfBytes(m.second.data(), m.second.size());
array_writer.CloseContainer(&entry_writer);
}
@@ -356,8 +354,7 @@ class BluetoothAdvertisementServiceProviderImpl
array_writer.OpenDictEntry(&entry_writer);
entry_writer.AppendString(m.first);
- entry_writer.AppendArrayOfBytes(vector_as_array(&m.second),
- m.second.size());
+ entry_writer.AppendArrayOfBytes(m.second.data(), m.second.size());
array_writer.CloseContainer(&entry_writer);
}
« no previous file with comments | « no previous file | device/serial/buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698