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

Unified Diff: third_party/protobuf/csharp/src/Google.Protobuf.JsonDump/Program.cs

Issue 2590803003: Revert "third_party/protobuf: Update to HEAD (83d681ee2c)" (Closed)
Patch Set: Created 4 years 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/protobuf/csharp/src/Google.Protobuf.JsonDump/Program.cs
diff --git a/third_party/protobuf/csharp/src/Google.Protobuf.JsonDump/Program.cs b/third_party/protobuf/csharp/src/Google.Protobuf.JsonDump/Program.cs
index 56e32ad86e5cb09379be51be77333c703928da5e..e8a6073e2bcb6b6f47dafb1f67f31de9b4a8671a 100644
--- a/third_party/protobuf/csharp/src/Google.Protobuf.JsonDump/Program.cs
+++ b/third_party/protobuf/csharp/src/Google.Protobuf.JsonDump/Program.cs
@@ -32,7 +32,6 @@
using System;
using System.IO;
-using System.Reflection;
namespace Google.Protobuf.ProtoDump
{
@@ -56,7 +55,7 @@ namespace Google.Protobuf.ProtoDump
Console.Error.WriteLine("Unable to load type {0}.", args[0]);
return 1;
}
- if (!typeof(IMessage).GetTypeInfo().IsAssignableFrom(type))
+ if (!typeof(IMessage).IsAssignableFrom(type))
{
Console.Error.WriteLine("Type {0} doesn't implement IMessage.", args[0]);
return 1;

Powered by Google App Engine
This is Rietveld 408576698