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

Unified Diff: chrome/browser/chromeos/extensions/install_limiter.cc

Issue 1547093002: Switch to standard integer types in chrome/browser/chromeos/. (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
Index: chrome/browser/chromeos/extensions/install_limiter.cc
diff --git a/chrome/browser/chromeos/extensions/install_limiter.cc b/chrome/browser/chromeos/extensions/install_limiter.cc
index 7bc865d520129f0cbf2b14ffd326154c3e71a1f3..7990a84618feb290ac81ebcbc66f9bbdb1e5791a 100644
--- a/chrome/browser/chromeos/extensions/install_limiter.cc
+++ b/chrome/browser/chromeos/extensions/install_limiter.cc
@@ -19,12 +19,12 @@ using content::BrowserThread;
namespace {
-int64 GetFileSizeOnBlockingPool(const base::FilePath& file) {
+int64_t GetFileSizeOnBlockingPool(const base::FilePath& file) {
DCHECK(BrowserThread::GetBlockingPool()->RunsTasksOnCurrentThread());
// Get file size. In case of error, sets 0 as file size to let the installer
// run and fail.
- int64 size;
+ int64_t size;
return base::GetFileSize(file, &size) ? size : 0;
}
@@ -77,11 +77,10 @@ void InstallLimiter::Add(const scoped_refptr<CrxInstaller>& installer,
base::Bind(&InstallLimiter::AddWithSize, AsWeakPtr(), installer, path));
}
-void InstallLimiter::AddWithSize(
- const scoped_refptr<CrxInstaller>& installer,
- const base::FilePath& path,
- int64 size) {
- const int64 kBigAppSizeThreshold = 1048576; // 1MB
+void InstallLimiter::AddWithSize(const scoped_refptr<CrxInstaller>& installer,
+ const base::FilePath& path,
+ int64_t size) {
+ const int64_t kBigAppSizeThreshold = 1048576; // 1MB
if (size <= kBigAppSizeThreshold) {
RunInstall(installer, path);
« no previous file with comments | « chrome/browser/chromeos/extensions/install_limiter.h ('k') | chrome/browser/chromeos/extensions/install_limiter_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698