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

Unified Diff: chrome/browser/profiles/profile_manager.cc

Issue 1548133002: Switch to standard integer types in chrome/browser/, part 3 of 4. (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/browser/profiles/profile_manager.h ('k') | chrome/browser/profiles/profile_manager_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_manager.cc
diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc
index 716adf8e208510dba59be5adee534fec0da59a1c..aaa2a34e3b2d72d870cc50ebba39ffa58ff4801c 100644
--- a/chrome/browser/profiles/profile_manager.cc
+++ b/chrome/browser/profiles/profile_manager.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/profiles/profile_manager.h"
+#include <stdint.h>
+
#include <set>
#include "base/bind.h"
@@ -20,6 +22,7 @@
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/trace_event/trace_event.h"
+#include "build/build_config.h"
#include "chrome/browser/bookmarks/bookmark_model_factory.h"
#include "chrome/browser/bookmarks/startup_task_runner_service_factory.h"
#include "chrome/browser/browser_process.h"
@@ -129,9 +132,9 @@ std::vector<base::FilePath>& ProfilesToDelete() {
return profiles_to_delete;
}
-int64 ComputeFilesSize(const base::FilePath& directory,
- const base::FilePath::StringType& pattern) {
- int64 running_size = 0;
+int64_t ComputeFilesSize(const base::FilePath& directory,
+ const base::FilePath::StringType& pattern) {
+ int64_t running_size = 0;
base::FileEnumerator iter(directory, false, base::FileEnumerator::FILES,
pattern);
while (!iter.Next().empty())
@@ -142,9 +145,9 @@ int64 ComputeFilesSize(const base::FilePath& directory,
// Simple task to log the size of the current profile.
void ProfileSizeTask(const base::FilePath& path, int enabled_app_count) {
DCHECK_CURRENTLY_ON(BrowserThread::FILE);
- const int64 kBytesInOneMB = 1024 * 1024;
+ const int64_t kBytesInOneMB = 1024 * 1024;
- int64 size = ComputeFilesSize(path, FILE_PATH_LITERAL("*"));
+ int64_t size = ComputeFilesSize(path, FILE_PATH_LITERAL("*"));
int size_MB = static_cast<int>(size / kBytesInOneMB);
UMA_HISTOGRAM_COUNTS_10000("Profile.TotalSize", size_MB);
« no previous file with comments | « chrome/browser/profiles/profile_manager.h ('k') | chrome/browser/profiles/profile_manager_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698