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

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

Issue 23980002: Activity Log: allow searching by day (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed error from last rebase 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
Index: chrome/browser/extensions/activity_log/activity_log.cc
diff --git a/chrome/browser/extensions/activity_log/activity_log.cc b/chrome/browser/extensions/activity_log/activity_log.cc
index 129626b4d55979935e58a436bdf24b783c9a2ec3..204ef3a31423d7c6e30da5846ee312a1178cfe2d 100644
--- a/chrome/browser/extensions/activity_log/activity_log.cc
+++ b/chrome/browser/extensions/activity_log/activity_log.cc
@@ -414,27 +414,18 @@ void ActivityLog::OnScriptsExecuted(
// LOOKUP ACTIONS. -------------------------------------------------------------
-void ActivityLog::GetActions(
- const std::string& extension_id,
- const int day,
- const base::Callback
- <void(scoped_ptr<std::vector<scoped_refptr<Action> > >)>& callback) {
- if (policy_) {
- policy_->ReadData(extension_id, day, callback);
- }
-}
-
void ActivityLog::GetFilteredActions(
const std::string& extension_id,
const Action::ActionType type,
const std::string& api_name,
const std::string& page_url,
const std::string& arg_url,
+ const int daysAgo,
const base::Callback
<void(scoped_ptr<std::vector<scoped_refptr<Action> > >)>& callback) {
if (policy_) {
policy_->ReadFilteredData(
- extension_id, type, api_name, page_url, arg_url, callback);
+ extension_id, type, api_name, page_url, arg_url, daysAgo, callback);
}
}

Powered by Google App Engine
This is Rietveld 408576698