diff options
| author | jyasskin@chromium.org <jyasskin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-14 00:30:56 +0000 |
|---|---|---|
| committer | jyasskin@chromium.org <jyasskin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-14 00:30:56 +0000 |
| commit | 64a82a5b9bf3ca133cef8963645416ff3ff4c05b (patch) | |
| tree | 4690074a155f39078985d5fc35912ef9d6ad6b8f /chrome/browser/extensions/test_extension_system.cc | |
| parent | 0d54ab228ff3fa7dd6c64dcdabadd6ded2330bbb (diff) | |
| download | chromium_src-64a82a5b9bf3ca133cef8963645416ff3ff4c05b.zip chromium_src-64a82a5b9bf3ca133cef8963645416ff3ff4c05b.tar.gz chromium_src-64a82a5b9bf3ca133cef8963645416ff3ff4c05b.tar.bz2 | |
Refactor chrome.alarms interface to support absolute alarm deadlines.
BUG=122817
TEST=Created an extension with absolute delays under 5 minutes away,
and watched that they didn't fire for 5 minutes.
Review URL: https://chromiumcodereview.appspot.com/10545104
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142037 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/test_extension_system.cc')
| -rw-r--r-- | chrome/browser/extensions/test_extension_system.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/extensions/test_extension_system.cc b/chrome/browser/extensions/test_extension_system.cc index 493ee24..8fbb699 100644 --- a/chrome/browser/extensions/test_extension_system.cc +++ b/chrome/browser/extensions/test_extension_system.cc @@ -36,8 +36,9 @@ void TestExtensionSystem::CreateExtensionProcessManager() { extension_process_manager_.reset(ExtensionProcessManager::Create(profile_)); } -void TestExtensionSystem::CreateAlarmManager() { - alarm_manager_.reset(new extensions::AlarmManager(profile_)); +void TestExtensionSystem::CreateAlarmManager( + extensions::AlarmManager::TimeProvider now) { + alarm_manager_.reset(new extensions::AlarmManager(profile_, now)); } ExtensionService* TestExtensionSystem::CreateExtensionService( |
