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

Unified Diff: chrome/browser/extensions/api/copresence/copresence_translations.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: chrome/browser/extensions/api/copresence/copresence_translations.cc
diff --git a/chrome/browser/extensions/api/copresence/copresence_translations.cc b/chrome/browser/extensions/api/copresence/copresence_translations.cc
index 492e6c2b5b32d9f9540346556cd0561062fb2929..779040ef2315855a31f86a020238f56b9cf0b85d 100644
--- a/chrome/browser/extensions/api/copresence/copresence_translations.cc
+++ b/chrome/browser/extensions/api/copresence/copresence_translations.cc
@@ -4,7 +4,6 @@
#include "chrome/browser/extensions/api/copresence/copresence_translations.h"
-#include "base/stl_util.h"
#include "chrome/common/extensions/api/copresence.h"
#include "components/copresence/proto/data.pb.h"
#include "components/copresence/proto/enums.pb.h"
@@ -90,9 +89,8 @@ bool AddPublishToRequest(const std::string& app_id,
publish_proto->set_id(publish.id);
publish_proto->mutable_message()->mutable_type()->set_type(
publish.message.type);
- publish_proto->mutable_message()->set_payload(
- vector_as_array(&publish.message.payload),
- publish.message.payload.size());
+ publish_proto->mutable_message()->set_payload(publish.message.payload.data(),
+ publish.message.payload.size());
int ttl = SanitizeTtl(publish.time_to_live_millis.get());
if (ttl < 0)

Powered by Google App Engine
This is Rietveld 408576698