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

Unified Diff: chrome/browser/search_engines/template_url_service.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: Initial upload. 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_service.h
===================================================================
--- chrome/browser/search_engines/template_url_service.h (revision 90021)
+++ chrome/browser/search_engines/template_url_service.h (working copy)
@@ -240,6 +240,14 @@
// Registers the preferences used to save a TemplateURL to prefs.
static void RegisterUserPrefs(PrefService* prefs);
+ // Type for a static function pointer that acts as a time source.
+ typedef base::Time(TimeProvider)();
sky 2011/06/22 22:38:06 Move this to other typedefs above.
SteveT 2011/06/23 21:15:55 Done.
+
+ // The following is for testing.
+ void InstallTimeProvider(TimeProvider* time_provider);
+ // Replaces |time_provider_| with the default value, &base::Time::Now.
+ void UninstallTimeProvider();
+
protected:
// Cover method for the method of the same name on the HistoryService.
// url is the one that was visited with the given search terms.
@@ -440,6 +448,9 @@
// List of extension IDs waiting for Load to have keywords registered.
std::vector<std::string> pending_extension_ids_;
+ // Function returning current time in base::Time units.
+ TimeProvider* time_provider_;
+
DISALLOW_COPY_AND_ASSIGN(TemplateURLService);
};

Powered by Google App Engine
This is Rietveld 408576698