@@ -59,9 +59,10 @@ Status LoggingDecoratorGenerator::GenerateHeader() {
5959 HeaderLocalIncludes ({vars (" stub_header_path" ),
6060 " google/cloud/tracing_options.h" ,
6161 " google/cloud/version.h" });
62- HeaderSystemIncludes (
63- {HasLongrunningMethod () ? " google/longrunning/operations.grpc.pb.h" : " " ,
64- " memory" , " set" , " string" });
62+ HeaderProtobufGenCodeIncludes ({HasLongrunningMethod ()
63+ ? " google/longrunning/operations.grpc.pb.h"
64+ : " " });
65+ HeaderSystemIncludes ({" memory" , " set" , " string" });
6566
6667 auto result = HeaderOpenNamespaces (NamespaceType::kInternal );
6768 if (!result.ok ()) return result;
@@ -124,8 +125,8 @@ Status LoggingDecoratorGenerator::GenerateCc() {
124125 ? " google/cloud/internal/async_streaming_write_rpc_logging.h"
125126 : " " ,
126127 " google/cloud/status_or.h" });
127- CcSystemIncludes (
128- { vars ( " proto_grpc_header_path " ), " memory" , " set" , " string" , " utility" });
128+ CcProtobufGenCodeIncludes ({ vars ( " proto_grpc_header_path " )});
129+ CcSystemIncludes ({ " memory" , " set" , " string" , " utility" });
129130
130131 auto result = CcOpenNamespaces (NamespaceType::kInternal );
131132 if (!result.ok ()) return result;
0 commit comments