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

Unified Diff: chrome/browser/chromeos/extensions/file_browser_notifications.cc

Issue 10026013: Update use of TimeDelta in chrome/browser/*, ui/views/*, and other places. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase onto master. Created 8 years, 7 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/chromeos/extensions/file_browser_notifications.cc
diff --git a/chrome/browser/chromeos/extensions/file_browser_notifications.cc b/chrome/browser/chromeos/extensions/file_browser_notifications.cc
index d7a5186f4ea0ea0747f76303e8a804db2adcceca..946337d0afd68e03012c0903b695f2b99ce9474e 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, &notification_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

Powered by Google App Engine
This is Rietveld 408576698