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

Unified Diff: components/search_engines/default_search_pref_migration.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_engines/default_search_pref_migration.cc
diff --git a/components/search_engines/default_search_pref_migration.cc b/components/search_engines/default_search_pref_migration.cc
index 0abcd4373b873d5cd2907a096c1d124864763c73..bf1835a0d4f29a62fb3cbdc506de75d8a302b51b 100644
--- a/components/search_engines/default_search_pref_migration.cc
+++ b/components/search_engines/default_search_pref_migration.cc
@@ -4,6 +4,9 @@
#include "components/search_engines/default_search_pref_migration.h"
+#include <stddef.h>
+#include <stdint.h>
+
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/logging.h"
@@ -82,7 +85,7 @@ scoped_ptr<TemplateURLData> LoadDefaultSearchProviderFromLegacyPrefs(
std::string id_string = prefs->GetString(prefs::kDefaultSearchProviderID);
if (!id_string.empty()) {
- int64 value;
+ int64_t value;
base::StringToInt64(id_string, &value);
default_provider_data->id = value;
}

Powered by Google App Engine
This is Rietveld 408576698