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

Unified Diff: third_party/WebKit/Source/modules/nfc/NFC.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/nfc/NFC.cpp
diff --git a/third_party/WebKit/Source/modules/nfc/NFC.cpp b/third_party/WebKit/Source/modules/nfc/NFC.cpp
index 6c75a76ac609afc87c6a7b06ece18d4660b422b0..68ab2b2d4b21c0518976ec4756ef84480ede8934 100644
--- a/third_party/WebKit/Source/modules/nfc/NFC.cpp
+++ b/third_party/WebKit/Source/modules/nfc/NFC.cpp
@@ -496,7 +496,7 @@ v8::Local<v8::Value> toV8(
String stringData;
if (!record->data.isEmpty()) {
stringData = String::fromUTF8WithLatin1Fallback(
- static_cast<unsigned char*>(&record->data.first()),
+ static_cast<unsigned char*>(&record->data.front()),
record->data.size());
}
@@ -521,7 +521,7 @@ v8::Local<v8::Value> toV8(
case device::nfc::mojom::blink::NFCRecordType::OPAQUE_RECORD: {
if (!record->data.isEmpty()) {
DOMArrayBuffer* buffer = DOMArrayBuffer::create(
- static_cast<void*>(&record->data.first()), record->data.size());
+ static_cast<void*>(&record->data.front()), record->data.size());
return toV8(buffer, scriptState->context()->Global(),
scriptState->isolate());
}

Powered by Google App Engine
This is Rietveld 408576698