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

Unified Diff: runtime/bin/common.cc

Issue 16758008: Add 'Server' and 'User-Agent' default header fields. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: git cl dcommit 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 | « pkg/http/test/request_test.dart ('k') | runtime/bin/common_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/common.cc
diff --git a/runtime/bin/common.cc b/runtime/bin/common.cc
index ce9a9ef34ef669376dd6074096a511d659655a1a..fd6386e8b1cccbf64e71d06f284fd2dcf660a4b2 100644
--- a/runtime/bin/common.cc
+++ b/runtime/bin/common.cc
@@ -58,5 +58,12 @@ void FUNCTION_NAME(Common_IsBuiltinList)(Dart_NativeArguments args) {
Dart_ExitScope();
}
+
+void FUNCTION_NAME(Common_GetVersion)(Dart_NativeArguments args) {
+ Dart_EnterScope();
+ Dart_SetReturnValue(args, Dart_NewStringFromCString(Dart_VersionString()));
+ Dart_ExitScope();
+}
+
} // namespace bin
} // namespace dart
« no previous file with comments | « pkg/http/test/request_test.dart ('k') | runtime/bin/common_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698