diff options
author | tedvessenes@gmail.com <tedvessenes@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-17 17:47:34 +0000 |
---|---|---|
committer | tedvessenes@gmail.com <tedvessenes@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-17 17:47:34 +0000 |
commit | df32e89c74d12127019a6f11775be9c7c31f3d21 (patch) | |
tree | 705fbb3ee8142e300f9748c8b51b84630f7e6b5f /chrome/browser/chromeos/extensions/file_browser_notifications.cc | |
parent | 155c8229033778e2691cb9e457163c98f97b2f78 (diff) | |
download | chromium_src-df32e89c74d12127019a6f11775be9c7c31f3d21.zip chromium_src-df32e89c74d12127019a6f11775be9c7c31f3d21.tar.gz chromium_src-df32e89c74d12127019a6f11775be9c7c31f3d21.tar.bz2 |
Update use of TimeDelta in chrome/browser/*, ui/views/*, and other places.
R=ben@chromium.org
BUG=108171
Review URL: https://chromiumcodereview.appspot.com/10026013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137682 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/extensions/file_browser_notifications.cc')
-rw-r--r-- | chrome/browser/chromeos/extensions/file_browser_notifications.cc | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/chrome/browser/chromeos/extensions/file_browser_notifications.cc b/chrome/browser/chromeos/extensions/file_browser_notifications.cc index d7a5186..946337d 100644 --- a/chrome/browser/chromeos/extensions/file_browser_notifications.cc +++ b/chrome/browser/chromeos/extensions/file_browser_notifications.cc @@ -130,15 +130,15 @@ void FileBrowserNotifications::ShowNotificationWithMessage( } } -void FileBrowserNotifications::ShowNotificationDelayed(NotificationType type, - const std::string& path, size_t delay_ms) { +void FileBrowserNotifications::ShowNotificationDelayed( + NotificationType type, const std::string& path, base::TimeDelta delay) { std::string notification_id; CreateNotificationId(type, path, ¬ification_id); CreateNotification(notification_id, GetIconId(type), GetTitleId(type)); PostDelayedShowNotificationTask(notification_id, type, l10n_util::GetStringUTF16(GetMessageId(type)), - delay_ms); + delay); } void FileBrowserNotifications::HideNotification(NotificationType type, @@ -153,19 +153,18 @@ void FileBrowserNotifications::HideNotification(NotificationType type, } } -void FileBrowserNotifications::HideNotificationDelayed(NotificationType type, - const std::string& path, - size_t delay_ms) { - PostDelayedHideNotificationTask(type, path, delay_ms); +void FileBrowserNotifications::HideNotificationDelayed( + NotificationType type, const std::string& path, base::TimeDelta delay) { + PostDelayedHideNotificationTask(type, path, delay); } void FileBrowserNotifications::PostDelayedShowNotificationTask( const std::string& notification_id, NotificationType type, - const string16& message, size_t delay_ms) { + const string16& message, base::TimeDelta delay) { MessageLoop::current()->PostDelayedTask(FROM_HERE, base::Bind(&ShowNotificationDelayedTask, notification_id, type, message, AsWeakPtr()), - delay_ms); + delay); } // static @@ -188,10 +187,10 @@ void FileBrowserNotifications::ShowNotificationDelayedTask( } void FileBrowserNotifications::PostDelayedHideNotificationTask( - NotificationType type, const std::string path, size_t delay_ms) { + NotificationType type, const std::string path, base::TimeDelta delay) { MessageLoop::current()->PostDelayedTask(FROM_HERE, base::Bind(&HideNotificationDelayedTask, type, path, AsWeakPtr()), - delay_ms); + delay); } // static |