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

Unified Diff: ios/web/public/user_agent.mm

Issue 839733004: Style fixes in //ios (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compile Created 5 years, 11 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: ios/web/public/user_agent.mm
diff --git a/ios/web/public/user_agent.mm b/ios/web/public/user_agent.mm
index 24fb64612c0783532c012083817eb69981515b39..29ac160cefb7718d7ef6d9578686696ded7654ab 100644
--- a/ios/web/public/user_agent.mm
+++ b/ios/web/public/user_agent.mm
@@ -108,9 +108,9 @@ std::string BuildUserAgentFromProduct(const std::string& product) {
int mib[2] = {CTL_KERN, KERN_OSVERSION};
unsigned int namelen = sizeof(mib) / sizeof(mib[0]);
size_t bufferSize = 0;
- sysctl(mib, namelen, NULL, &bufferSize, NULL, 0);
+ sysctl(mib, namelen, nullptr, &bufferSize, nullptr, 0);
char kernel_version[bufferSize];
- int result = sysctl(mib, namelen, kernel_version, &bufferSize, NULL, 0);
+ int result = sysctl(mib, namelen, kernel_version, &bufferSize, nullptr, 0);
DCHECK(result == 0);
UAVersions ua_versions = GetUAVersionsForCurrentOS();

Powered by Google App Engine
This is Rietveld 408576698