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

Side by Side Diff: ash/system/toast/toast_manager.cc

Issue 1966903002: Fix include path for moved thread_task_runner_handle.h header in ash/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a1_move_task_runner_handle
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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/system/toast/toast_manager.h" 5 #include "ash/system/toast/toast_manager.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/thread_task_runner_handle.h" 9 #include "base/threading/thread_task_runner_handle.h"
10 10
11 namespace ash { 11 namespace ash {
12 12
13 namespace { 13 namespace {
14 14
15 // Minimum duration for a toast to be visible (in millisecond). 15 // Minimum duration for a toast to be visible (in millisecond).
16 uint64_t kMinimumDurationMs = 200; 16 uint64_t kMinimumDurationMs = 200;
17 17
18 } // anonymous namespace 18 } // anonymous namespace
19 19
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 queue_.pop(); 55 queue_.pop();
56 } 56 }
57 57
58 void ToastManager::OnDurationPassed(int toast_id) { 58 void ToastManager::OnDurationPassed(int toast_id) {
59 if (overlay_ && toast_id_ == toast_id) 59 if (overlay_ && toast_id_ == toast_id)
60 overlay_->Show(false); 60 overlay_->Show(false);
61 } 61 }
62 62
63 } // namespace ash 63 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/chromeos/session/logout_confirmation_controller_unittest.cc ('k') | ash/system/toast/toast_overlay.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698