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

Unified Diff: components/web_resource/promo_resource_service.cc

Issue 1549993003: Switch to standard integer types in components/, part 4 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
Index: components/web_resource/promo_resource_service.cc
diff --git a/components/web_resource/promo_resource_service.cc b/components/web_resource/promo_resource_service.cc
index 6c23da208f76c771500b5ef550a2bc92122258af..6d3f6a7dcdf6f2990debbc790d81bdeeb0e4983c 100644
--- a/components/web_resource/promo_resource_service.cc
+++ b/components/web_resource/promo_resource_service.cc
@@ -4,15 +4,19 @@
#include "components/web_resource/promo_resource_service.h"
+#include <stddef.h>
+
#include "base/bind.h"
#include "base/command_line.h"
#include "base/location.h"
+#include "base/macros.h"
#include "base/prefs/pref_registry_simple.h"
#include "base/prefs/pref_service.h"
#include "base/single_thread_task_runner.h"
#include "base/thread_task_runner_handle.h"
#include "base/threading/thread_restrictions.h"
#include "base/values.h"
+#include "build/build_config.h"
#include "components/pref_registry/pref_registry_syncable.h"
#include "components/web_resource/notification_promo.h"
#include "components/web_resource/web_resource_pref_names.h"
@@ -118,10 +122,10 @@ void PromoResourceService::ScheduleNotification(
const double promo_end = notification_promo.EndTime();
if (promo_start > 0 && promo_end > 0) {
- const int64 ms_until_start = static_cast<int64>(
+ const int64_t ms_until_start = static_cast<int64_t>(
(base::Time::FromDoubleT(promo_start) - base::Time::Now())
.InMilliseconds());
- const int64 ms_until_end = static_cast<int64>(
+ const int64_t ms_until_end = static_cast<int64_t>(
(base::Time::FromDoubleT(promo_end) - base::Time::Now())
.InMilliseconds());
if (ms_until_start > 0) {
@@ -154,7 +158,7 @@ void PromoResourceService::ScheduleNotificationOnInit() {
}
}
-void PromoResourceService::PostNotification(int64 delay_ms) {
+void PromoResourceService::PostNotification(int64_t delay_ms) {
// Note that this could cause re-issuing a notification every time
// we receive an update from a server if something goes wrong.
// Given that this couldn't happen more frequently than every

Powered by Google App Engine
This is Rietveld 408576698