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

Unified Diff: chrome/browser/extensions/activity_log/counting_policy.cc

Issue 23874008: Added memory limit for chrome.activityLogPrivate returned results (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 months 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
« no previous file with comments | « no previous file | chrome/browser/extensions/activity_log/counting_policy_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()));
« no previous file with comments | « no previous file | chrome/browser/extensions/activity_log/counting_policy_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698