diff options
Diffstat (limited to 'webkit/appcache/appcache.h')
-rw-r--r-- | webkit/appcache/appcache.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/webkit/appcache/appcache.h b/webkit/appcache/appcache.h index 08fdd1b..c80cafd 100644 --- a/webkit/appcache/appcache.h +++ b/webkit/appcache/appcache.h @@ -60,7 +60,14 @@ class AppCache : public base::RefCounted<AppCache> { } bool IsNewerThan(AppCache* cache) const { - return update_time_ > cache->update_time_; + if (update_time_ > cache->update_time_) + return true; + + // Tie breaker. Newer caches have a larger cache ID. + if (update_time_ == cache->update_time_) + return cache_id_ > cache->cache_id_; + + return false; } void set_update_time(base::TimeTicks ticks) { |