absl::StatusOr is banned in Chromium

https://chromium.googlesource.com/chromium/src/+/main/styleguide/c++/c++-features.md#statusor-banned

PiperOrigin-RevId: 889397318
This commit is contained in:
hai007
2026-03-25 13:10:55 -07:00
committed by Copybara-Service
parent e8dbe745f8
commit c855c882c4
+1 -1
View File
@@ -155,7 +155,6 @@ class ImplementationPlatform {
static std::unique_ptr<nearby::api::PreferencesManager>
CreatePreferencesManager(absl::string_view path);
static std::unique_ptr<DeviceInfo> CreateDeviceInfo();
#endif
// Gets HTTP response from remote server.
//
@@ -165,6 +164,7 @@ class ImplementationPlatform {
// return WebResponse if HTTP status code between 200 and 300.
// other cases will return absl Status in error.
static absl::StatusOr<WebResponse> SendRequest(const WebRequest& request);
#endif
};
} // namespace api