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

Unified Diff: ash/system/toast/toast_manager.cc

Issue 2031973003: Use int32_t for duration property of toast (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « ash/system/toast/toast_data.h ('k') | ash/system/toast/toast_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/toast/toast_manager.cc
diff --git a/ash/system/toast/toast_manager.cc b/ash/system/toast/toast_manager.cc
index 1bdde549b0b9fb502b56d07d542713c5573394f6..5d2adc29e16d4acada118d4bd19b768c83a8ccd7 100644
--- a/ash/system/toast/toast_manager.cc
+++ b/ash/system/toast/toast_manager.cc
@@ -13,7 +13,7 @@ namespace ash {
namespace {
// Minimum duration for a toast to be visible (in millisecond).
-uint64_t kMinimumDurationMs = 200;
+int32_t kMinimumDurationMs = 200;
} // anonymous namespace
@@ -72,7 +72,7 @@ void ToastManager::ShowLatest() {
const ToastData data = std::move(queue_.front());
queue_.pop_front();
- uint64_t duration_ms = std::max(data.duration_ms, kMinimumDurationMs);
+ int32_t duration_ms = std::max(data.duration_ms, kMinimumDurationMs);
current_toast_id_ = data.id;
serial_++;
« no previous file with comments | « ash/system/toast/toast_data.h ('k') | ash/system/toast/toast_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698