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

Unified Diff: chrome/common/service_process_util.cc

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « chrome/common/service_process_util.h ('k') | chrome/common/service_process_util_posix.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/service_process_util.cc
diff --git a/chrome/common/service_process_util.cc b/chrome/common/service_process_util.cc
index accccfe26f5ff8ac5bc4ea041aaa4a339d6ec21b..190755d298c8d110df0af1ab9e534391b971885a 100644
--- a/chrome/common/service_process_util.cc
+++ b/chrome/common/service_process_util.cc
@@ -4,11 +4,14 @@
#include "chrome/common/service_process_util.h"
+#include <stdint.h>
+
#include <algorithm>
#include "base/base_switches.h"
#include "base/command_line.h"
#include "base/logging.h"
+#include "base/macros.h"
#include "base/memory/singleton.h"
#include "base/path_service.h"
#include "base/sha1.h"
@@ -17,6 +20,7 @@
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/version.h"
+#include "build/build_config.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
@@ -32,8 +36,8 @@
namespace {
// This should be more than enough to hold a version string assuming each part
-// of the version string is an int64.
-const uint32 kMaxVersionStringLength = 256;
+// of the version string is an int64_t.
+const uint32_t kMaxVersionStringLength = 256;
// The structure that gets written to shared memory.
struct ServiceProcessSharedData {
@@ -247,7 +251,7 @@ bool ServiceProcessState::CreateSharedData() {
if (!shared_mem_service_data.get())
return false;
- uint32 alloc_size = sizeof(ServiceProcessSharedData);
+ uint32_t alloc_size = sizeof(ServiceProcessSharedData);
// TODO(viettrungluu): Named shared memory is deprecated (crbug.com/345734).
if (!shared_mem_service_data->CreateNamedDeprecated
(GetServiceProcessSharedMemName(), true, alloc_size))
« no previous file with comments | « chrome/common/service_process_util.h ('k') | chrome/common/service_process_util_posix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698