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

Unified Diff: components/search_provider_logos/logo_cache.cc

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more 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: components/search_provider_logos/logo_cache.cc
diff --git a/components/search_provider_logos/logo_cache.cc b/components/search_provider_logos/logo_cache.cc
index 6f0ae367ae8cb56e87558fa577c2c2a5a62c87c6..4ceb6d882ce0922d50e36b21dd89b067f642f056 100644
--- a/components/search_provider_logos/logo_cache.cc
+++ b/components/search_provider_logos/logo_cache.cc
@@ -4,6 +4,9 @@
#include "components/search_provider_logos/logo_cache.h"
+#include <stddef.h>
+#include <stdint.h>
+
#include "base/files/file_util.h"
#include "base/json/json_reader.h"
#include "base/json/json_writer.h"
@@ -27,7 +30,7 @@ bool GetTimeValue(const base::DictionaryValue& dict,
const std::string& key,
base::Time* time) {
std::string str;
- int64 internal_time_value;
+ int64_t internal_time_value;
if (dict.GetString(key, &str) &&
base::StringToInt64(str, &internal_time_value)) {
*time = base::Time::FromInternalValue(internal_time_value);
@@ -39,7 +42,7 @@ bool GetTimeValue(const base::DictionaryValue& dict,
void SetTimeValue(base::DictionaryValue& dict,
const std::string& key,
const base::Time& time) {
- int64 internal_time_value = time.ToInternalValue();
+ int64_t internal_time_value = time.ToInternalValue();
dict.SetString(key, base::Int64ToString(internal_time_value));
}
« no previous file with comments | « components/search_provider_logos/logo_cache.h ('k') | components/search_provider_logos/logo_cache_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698