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

Unified Diff: ios/chrome/browser/memory/memory_debugger.mm

Issue 1544743002: Switch to standard integer types in ios/. (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 | « ios/chrome/browser/ios_chrome_io_thread.cc ('k') | ios/chrome/browser/memory/memory_metrics.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/memory/memory_debugger.mm
diff --git a/ios/chrome/browser/memory/memory_debugger.mm b/ios/chrome/browser/memory/memory_debugger.mm
index 22bf88181d6da8b8b9fe6f3cfa2475bb19adcb51..13c04a0e8cf0036eaf35603099f1f1f099fd343d 100644
--- a/ios/chrome/browser/memory/memory_debugger.mm
+++ b/ios/chrome/browser/memory/memory_debugger.mm
@@ -4,6 +4,8 @@
#import "ios/chrome/browser/memory/memory_debugger.h"
+#include <stdint.h>
+
#include "base/ios/ios_util.h"
#import "base/mac/scoped_nsobject.h"
#import "base/memory/scoped_ptr.h"
@@ -40,7 +42,7 @@ const CGFloat kPadding = 10;
base::scoped_nsobject<UITextField> _continuousMemoryWarningField;
// A place to store the artifical memory bloat.
- scoped_ptr<uint8> _bloat;
+ scoped_ptr<uint8_t> _bloat;
// Distance the view was pushed up to accomodate the keyboard.
CGFloat _keyboardOffset;
@@ -482,8 +484,8 @@ const CGFloat kPadding = 10;
[_bloatField setText:[NSString stringWithFormat:@"%.1f", bloatSizeMB]];
}
const CGFloat kBloatSizeBytes = ceil(bloatSizeMB * kNumBytesInMB);
- const uint64 kNumberOfBytes = static_cast<uint64>(kBloatSizeBytes);
- _bloat.reset(kNumberOfBytes ? new uint8[kNumberOfBytes] : nullptr);
+ const uint64_t kNumberOfBytes = static_cast<uint64_t>(kBloatSizeBytes);
+ _bloat.reset(kNumberOfBytes ? new uint8_t[kNumberOfBytes] : nullptr);
if (_bloat) {
memset(_bloat.get(), -1, kNumberOfBytes); // Occupy memory.
} else {
« no previous file with comments | « ios/chrome/browser/ios_chrome_io_thread.cc ('k') | ios/chrome/browser/memory/memory_metrics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698