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

Unified Diff: runtime/bin/secure_socket.cc

Issue 17261011: Replace uses of Dart_GetClass with Dart_GetType and Dart_InstanceGetClass with Dart_InstanceGetType… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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
« no previous file with comments | « runtime/bin/main.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/secure_socket.cc
===================================================================
--- runtime/bin/secure_socket.cc (revision 24207)
+++ runtime/bin/secure_socket.cc (working copy)
@@ -264,23 +264,23 @@
Dart_Handle start_epoch_ms_int = Dart_NewInteger(start_epoch_ms);
Dart_Handle end_epoch_ms_int = Dart_NewInteger(end_epoch_ms);
- Dart_Handle date_class =
- DartUtils::GetDartClass(DartUtils::kCoreLibURL, "DateTime");
+ Dart_Handle date_type =
+ DartUtils::GetDartType(DartUtils::kCoreLibURL, "DateTime");
Dart_Handle from_milliseconds =
DartUtils::NewString("fromMillisecondsSinceEpoch");
Dart_Handle start_validity_date =
- Dart_New(date_class, from_milliseconds, 1, &start_epoch_ms_int);
+ Dart_New(date_type, from_milliseconds, 1, &start_epoch_ms_int);
Dart_Handle end_validity_date =
- Dart_New(date_class, from_milliseconds, 1, &end_epoch_ms_int);
+ Dart_New(date_type, from_milliseconds, 1, &end_epoch_ms_int);
- Dart_Handle x509_class =
- DartUtils::GetDartClass(DartUtils::kIOLibURL, "X509Certificate");
+ Dart_Handle x509_type =
+ DartUtils::GetDartType(DartUtils::kIOLibURL, "X509Certificate");
Dart_Handle arguments[] = { subject_name_object,
issuer_name_object,
start_validity_date,
end_validity_date };
- return Dart_New(x509_class, Dart_Null(), 4, arguments);
+ return Dart_New(x509_type, Dart_Null(), 4, arguments);
}
@@ -309,13 +309,13 @@
Dart_GetField(dart_this, DartUtils::NewString("buffers")));
Dart_Handle dart_buffer_object =
Dart_ListGetAt(dart_buffers_object, kReadPlaintext);
- Dart_Handle external_buffer_class =
- Dart_InstanceGetClass(dart_buffer_object);
+ Dart_Handle external_buffer_type =
+ Dart_InstanceGetType(dart_buffer_object);
Dart_Handle dart_buffer_size = ThrowIfError(
- Dart_GetField(external_buffer_class, DartUtils::NewString("SIZE")));
+ Dart_GetField(external_buffer_type, DartUtils::NewString("SIZE")));
int64_t buffer_size = DartUtils::GetIntegerValue(dart_buffer_size);
Dart_Handle dart_encrypted_buffer_size = ThrowIfError(
- Dart_GetField(external_buffer_class,
+ Dart_GetField(external_buffer_type,
DartUtils::NewString("ENCRYPTED_SIZE")));
int64_t encrypted_buffer_size =
DartUtils::GetIntegerValue(dart_encrypted_buffer_size);
« no previous file with comments | « runtime/bin/main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698