| Index: chrome/browser/intents/web_intents_registry.cc
|
| diff --git a/chrome/browser/intents/web_intents_registry.cc b/chrome/browser/intents/web_intents_registry.cc
|
| index 62d0789ad404cab524d70358bdabbc5322e9423d..5b332a2d4efa4a2b15ee22981516e73eff4283e2 100644
|
| --- a/chrome/browser/intents/web_intents_registry.cc
|
| +++ b/chrome/browser/intents/web_intents_registry.cc
|
| @@ -289,6 +289,7 @@ void WebIntentsRegistry::OnWebIntentsDefaultsResultReceived(
|
| // Found a match. If it is better than default_service, use it.
|
| // Currently the metric is that if the new value is user-set,
|
| // prefer it. If the new value has a more specific pattern, prefer it.
|
| + // If the new value has a more recent date, prefer it.
|
| if (default_service.user_date <= 0 && iter->user_date >= 0) {
|
| default_service = *iter;
|
| } else if (default_service.url_pattern.match_all_urls() &&
|
| @@ -296,6 +297,8 @@ void WebIntentsRegistry::OnWebIntentsDefaultsResultReceived(
|
| default_service = *iter;
|
| } else if (iter->url_pattern < default_service.url_pattern) {
|
| default_service = *iter;
|
| + } else if (default_service.user_date < iter->user_date) {
|
| + default_service = *iter;
|
| }
|
| }
|
|
|
|
|