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

Unified Diff: components/offline_pages/core/prefetch/proto/status.proto

Issue 2940393002: [Offline Prefetch] Use proto2 syntax for offline prefetch proto (Closed)
Patch Set: Created 3 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
Index: components/offline_pages/core/prefetch/proto/status.proto
diff --git a/components/offline_pages/core/prefetch/proto/status.proto b/components/offline_pages/core/prefetch/proto/status.proto
index f7187993d2318c871fec8a63a766ee6af861d6d8..affec0b3a09b75dd9ac5c6301bdde003aa3c9d76 100644
--- a/components/offline_pages/core/prefetch/proto/status.proto
+++ b/components/offline_pages/core/prefetch/proto/status.proto
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-syntax = "proto3";
+syntax = "proto2";
option optimize_for = LITE_RUNTIME;
package offline_pages.proto;
@@ -18,10 +18,10 @@ enum Code {
message Status {
// The status code.
- int32 code = 1;
+ optional int32 code = 1;
// A developer-facing error message, which should be in English.
- string message = 2;
+ optional string message = 2;
// A list of messages that carry the error details. There will be a
// common set of message types for APIs to use.

Powered by Google App Engine
This is Rietveld 408576698