Skip to content

Commit

Permalink
Refine kModelYear to reduce boilerplate churn
Browse files Browse the repository at this point in the history
  • Loading branch information
oxve committed Jun 3, 2024
1 parent a7734f2 commit b55351b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
3 changes: 1 addition & 2 deletions cobalt/network/url_request_context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,7 @@ URLRequestContext::URLRequestContext(
} else {
using_http_cache_ = true;

int max_cache_bytes = 24 * 1024 * 1024;
max_cache_bytes = kSbMaxSystemPathCacheDirectorySize;
int max_cache_bytes = kSbMaxSystemPathCacheDirectorySize;
// Assume the non-http-cache memory in kSbSystemPathCacheDirectory
// is less than 1 mb and subtract this from the max_cache_bytes.
max_cache_bytes -= (1 << 20);
Expand Down
11 changes: 11 additions & 0 deletions starboard/linux/x64x11/system_get_property_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,18 @@ const char kModelName[] = "ModelName";
const char kPlatformName[] = "X11; Linux x86_64";
const char kSystemIntegratorName[] = "SystemIntegratorName";

#if SB_API_VERSION == 16
const char kModelYear[] = "2025";
#endif // SB_API_VERSION == 16

#if SB_API_VERSION == 15
const char kModelYear[] = "2024";
#endif // SB_API_VERSION == 15

#if SB_API_VERSION == 14
const char kModelYear[] = "2023";
#endif // SB_API_VERSION == 14

} // namespace

// Omit namespace linux due to symbol name conflict.
Expand Down

0 comments on commit b55351b

Please sign in to comment.