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

Unified Diff: chrome/installer/util/google_update_settings.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
Index: chrome/installer/util/google_update_settings.cc
diff --git a/chrome/installer/util/google_update_settings.cc b/chrome/installer/util/google_update_settings.cc
index 529c05567baca9897132860065214b6a883c2119..e32e185d354c26607c7908f55f5c52ebb02a78c3 100644
--- a/chrome/installer/util/google_update_settings.cc
+++ b/chrome/installer/util/google_update_settings.cc
@@ -4,6 +4,8 @@
#include "chrome/installer/util/google_update_settings.h"
+#include <stdint.h>
+
#include <algorithm>
#include <limits>
@@ -389,7 +391,7 @@ int GoogleUpdateSettings::GetLastRunTime() {
base::string16 time_s;
if (!ReadGoogleUpdateStrKey(google_update::kRegLastRunTimeField, &time_s))
return -1;
- int64 time_i;
+ int64_t time_i;
if (!base::StringToInt64(time_s, &time_i))
return -1;
base::TimeDelta td =
@@ -398,7 +400,7 @@ int GoogleUpdateSettings::GetLastRunTime() {
}
bool GoogleUpdateSettings::SetLastRunTime() {
- int64 time = base::Time::NowFromSystemTime().ToInternalValue();
+ int64_t time = base::Time::NowFromSystemTime().ToInternalValue();
return WriteGoogleUpdateStrKey(google_update::kRegLastRunTimeField,
base::Int64ToString16(time));
}
« no previous file with comments | « chrome/installer/util/google_update_settings.h ('k') | chrome/installer/util/google_update_settings_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698