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

Unified Diff: chrome/browser/extensions/activity_log/activity_actions.h

Issue 23449016: Update tests to check fields directly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « no previous file | chrome/browser/extensions/activity_log/activity_actions.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/activity_log/activity_actions.h
diff --git a/chrome/browser/extensions/activity_log/activity_actions.h b/chrome/browser/extensions/activity_log/activity_actions.h
index c5cd7ab08044f89c88b31dcfa915239a569e4aba..3c8b278b8e77f5bfd08db2b9818cc44aad46e616 100644
--- a/chrome/browser/extensions/activity_log/activity_actions.h
+++ b/chrome/browser/extensions/activity_log/activity_actions.h
@@ -108,6 +108,10 @@ class Action : public base::RefCountedThreadSafe<Action> {
std::string SerializeArgUrl() const;
void ParseArgUrl(const std::string& url);
+ // Number of merged records for this action.
+ int count() const { return count_; }
+ void set_count(int count) { count_ = count; }
+
// Flatten the activity's type-specific fields into an ExtensionActivity.
scoped_ptr<api::activity_log_private::ExtensionActivity>
ConvertToExtensionActivity();
@@ -132,6 +136,7 @@ class Action : public base::RefCountedThreadSafe<Action> {
GURL arg_url_;
bool arg_incognito_;
scoped_ptr<DictionaryValue> other_;
+ int count_;
DISALLOW_COPY_AND_ASSIGN(Action);
};
« no previous file with comments | « no previous file | chrome/browser/extensions/activity_log/activity_actions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698