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

Unified Diff: third_party/WebKit/Source/modules/nfc/NFC.cpp

Issue 2595543003: Rename toV8(...) function in Blink to ToV8(...). (Closed)
Patch Set: Rebasing... Created 3 years, 11 months 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 0f0a5b7d99043fa51cee0b93b92a1b91345785b9..b2321e980ff3fe06416783c0f5b37e02c6abbeed 100644
--- a/third_party/WebKit/Source/modules/nfc/NFC.cpp
+++ b/third_party/WebKit/Source/modules/nfc/NFC.cpp
@@ -486,7 +486,7 @@ String toNFCRecordType(const device::nfc::mojom::blink::NFCRecordType& type) {
return String();
}
-v8::Local<v8::Value> toV8(
+v8::Local<v8::Value> ToV8(
ScriptState* scriptState,
const device::nfc::mojom::blink::NFCRecordPtr& record) {
switch (record->record_type) {
@@ -522,7 +522,7 @@ v8::Local<v8::Value> toV8(
if (!record->data.isEmpty()) {
DOMArrayBuffer* buffer = DOMArrayBuffer::create(
static_cast<void*>(&record->data.front()), record->data.size());
- return toV8(buffer, scriptState->context()->Global(),
+ return ToV8(buffer, scriptState->context()->Global(),
scriptState->isolate());
}
@@ -542,7 +542,7 @@ NFCRecord toNFCRecord(ScriptState* scriptState,
NFCRecord nfcRecord;
nfcRecord.setMediaType(record->media_type);
nfcRecord.setRecordType(toNFCRecordType(record->record_type));
- nfcRecord.setData(ScriptValue(scriptState, toV8(scriptState, record)));
+ nfcRecord.setData(ScriptValue(scriptState, ToV8(scriptState, record)));
return nfcRecord;
}

Powered by Google App Engine
This is Rietveld 408576698