| Index: components/web_resource/web_resource_service.cc
|
| diff --git a/components/web_resource/web_resource_service.cc b/components/web_resource/web_resource_service.cc
|
| index 1afd22eef4ead5c51edbd832b065d600cb0439dc..d7fa9fb9c1841cc1146f476e9b00fd4eeb767800 100644
|
| --- a/components/web_resource/web_resource_service.cc
|
| +++ b/components/web_resource/web_resource_service.cc
|
| @@ -97,7 +97,7 @@ void WebResourceService::OnURLFetchComplete(const net::URLFetcher* source) {
|
|
|
| // Delay initial load of resource data into cache so as not to interfere
|
| // with startup time.
|
| -void WebResourceService::ScheduleFetch(int64 delay_ms) {
|
| +void WebResourceService::ScheduleFetch(int64_t delay_ms) {
|
| base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
|
| FROM_HERE, base::Bind(&WebResourceService::StartFetch,
|
| weak_ptr_factory_.GetWeakPtr()),
|
| @@ -163,7 +163,7 @@ void WebResourceService::OnUnpackError(const std::string& error_message) {
|
| }
|
|
|
| void WebResourceService::OnResourceRequestsAllowed() {
|
| - int64 delay = start_fetch_delay_ms_;
|
| + int64_t delay = start_fetch_delay_ms_;
|
| // Check whether we have ever put a value in the web resource cache;
|
| // if so, pull it out and see if it's time to update again.
|
| if (prefs_->HasPrefPath(last_update_time_pref_name_)) {
|
| @@ -172,9 +172,9 @@ void WebResourceService::OnResourceRequestsAllowed() {
|
| if (!last_update_pref.empty()) {
|
| double last_update_value;
|
| base::StringToDouble(last_update_pref, &last_update_value);
|
| - int64 ms_until_update =
|
| + int64_t ms_until_update =
|
| cache_update_delay_ms_ -
|
| - static_cast<int64>(
|
| + static_cast<int64_t>(
|
| (base::Time::Now() - base::Time::FromDoubleT(last_update_value))
|
| .InMilliseconds());
|
| // Wait at least |start_fetch_delay_ms_|.
|
|
|