Chromium Code Reviews| 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); |
| }; |