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

Unified Diff: chrome/browser/search_engines/template_url.h

Issue 7232023: Added last_modified field to TemplateURL and database. Updated unit tests, including refactoring ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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/search_engines/template_url.h
===================================================================
--- chrome/browser/search_engines/template_url.h (revision 90021)
+++ chrome/browser/search_engines/template_url.h (working copy)
@@ -142,6 +142,7 @@
friend class TemplateURLTest;
FRIEND_TEST_ALL_PREFIXES(TemplateURLTest, ParseParameterKnown);
FRIEND_TEST_ALL_PREFIXES(TemplateURLTest, ParseParameterUnknown);
+ FRIEND_TEST_ALL_PREFIXES(TemplateURLTest, ParseParameterReallyUnknown);
FRIEND_TEST_ALL_PREFIXES(TemplateURLTest, ParseURLEmpty);
FRIEND_TEST_ALL_PREFIXES(TemplateURLTest, ParseURLNoTemplateEnd);
FRIEND_TEST_ALL_PREFIXES(TemplateURLTest, ParseURLNoKnownParameters);
@@ -425,6 +426,12 @@
void set_date_created(base::Time time) { date_created_ = time; }
base::Time date_created() const { return date_created_; }
+ // The last time this keyword was modified by a user, since creation.
+ //
+ // NOTE: Like date_created above, this may be 0.
+ void set_last_modified(base::Time time) { last_modified_ = time; }
+ base::Time last_modified() const { return last_modified_; }
+
// True if this TemplateURL was automatically created by the administrator via
// group policy.
void set_created_by_policy(bool created_by_policy) {
@@ -510,6 +517,7 @@
std::vector<std::string> input_encodings_;
TemplateURLID id_;
base::Time date_created_;
+ base::Time last_modified_;
bool created_by_policy_;
int usage_count_;
SearchEngineType search_engine_type_;
« no previous file with comments | « chrome/browser/importer/profile_import_process_messages.h ('k') | chrome/browser/search_engines/template_url.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698