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

Unified Diff: third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp

Issue 2470233009: WTF/std normalization: replace WTF::Vector::first() with ::front() (Closed)
Patch Set: rebase Created 4 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: third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp
diff --git a/third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp b/third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp
index c64e7cda9e840f013fa02b52c16c300822a56ed8..87e31d768b5fd17ba8f4482799c2da2e548a4afe 100644
--- a/third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp
+++ b/third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp
@@ -108,7 +108,7 @@ void BroadcastChannel::OnMessage(const WTF::Vector<uint8_t>& message) {
// Queue a task to dispatch the event.
RefPtr<SerializedScriptValue> value = SerializedScriptValue::create(
message.isEmpty() ? nullptr
- : reinterpret_cast<const char*>(&message.first()),
+ : reinterpret_cast<const char*>(&message.front()),
message.size());
MessageEvent* event = MessageEvent::create(
nullptr, value.release(),

Powered by Google App Engine
This is Rietveld 408576698