| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #import "ios/chrome/browser/memory/memory_debugger.h" | 5 #import "ios/chrome/browser/memory/memory_debugger.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <memory> |
| 10 |
| 9 #include "base/ios/ios_util.h" | 11 #include "base/ios/ios_util.h" |
| 10 #import "base/mac/scoped_nsobject.h" | 12 #import "base/mac/scoped_nsobject.h" |
| 11 #import "base/memory/scoped_ptr.h" | |
| 12 #import "ios/chrome/browser/memory/memory_metrics.h" | 13 #import "ios/chrome/browser/memory/memory_metrics.h" |
| 13 #include "ios/chrome/browser/ui/ui_util.h" | 14 #include "ios/chrome/browser/ui/ui_util.h" |
| 14 #import "ios/chrome/browser/ui/uikit_ui_util.h" | 15 #import "ios/chrome/browser/ui/uikit_ui_util.h" |
| 15 | 16 |
| 16 namespace { | 17 namespace { |
| 17 // The number of bytes in a megabyte. | 18 // The number of bytes in a megabyte. |
| 18 const CGFloat kNumBytesInMB = 1024 * 1024; | 19 const CGFloat kNumBytesInMB = 1024 * 1024; |
| 19 // The horizontal and vertical padding between subviews. | 20 // The horizontal and vertical padding between subviews. |
| 20 const CGFloat kPadding = 10; | 21 const CGFloat kPadding = 10; |
| 21 } // namespace | 22 } // namespace |
| (...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 598 [alert addAction:[UIAlertAction actionWithTitle:@"OK" | 599 [alert addAction:[UIAlertAction actionWithTitle:@"OK" |
| 599 style:UIAlertActionStyleDefault | 600 style:UIAlertActionStyleDefault |
| 600 handler:nil]]; | 601 handler:nil]]; |
| 601 [[[[UIApplication sharedApplication] keyWindow] rootViewController] | 602 [[[[UIApplication sharedApplication] keyWindow] rootViewController] |
| 602 presentViewController:alert | 603 presentViewController:alert |
| 603 animated:YES | 604 animated:YES |
| 604 completion:nil]; | 605 completion:nil]; |
| 605 } | 606 } |
| 606 | 607 |
| 607 @end | 608 @end |
| OLD | NEW |