Index: chrome/browser/extensions/activity_log/counting_policy.cc |
diff --git a/chrome/browser/extensions/activity_log/counting_policy.cc b/chrome/browser/extensions/activity_log/counting_policy.cc |
index 9188b48ad8bd2b69543ae0f190ed5e9a7c60b324..15d6c86a4e33ee9b15e67a8e359be71bf03bf053 100644 |
--- a/chrome/browser/extensions/activity_log/counting_policy.cc |
+++ b/chrome/browser/extensions/activity_log/counting_policy.cc |
@@ -442,7 +442,8 @@ scoped_ptr<Action::ActionVector> CountingPolicy::DoReadFilteredData( |
where_str += where_next + "arg_url LIKE ?"; |
std::string query_str = base::StringPrintf( |
"SELECT extension_id,time, action_type, api_name, args, page_url," |
- "page_title, arg_url, other, count FROM %s WHERE %s ORDER BY time DESC", |
+ "page_title, arg_url, other, count FROM %s WHERE %s ORDER BY count DESC " |
+ "LIMIT 300", |
kReadViewName, |
where_str.c_str()); |
sql::Statement query(db->GetUniqueStatement(query_str.c_str())); |