OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "chrome/browser/chromeos/system_logs/touch_log_source.h" | 5 #include "chrome/browser/chromeos/system_logs/touch_log_source.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "ash/touch/touch_hud_debug.h" | 9 #include "ash/touch/touch_hud_debug.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 55 |
56 } // namespace | 56 } // namespace |
57 | 57 |
58 namespace system_logs { | 58 namespace system_logs { |
59 | 59 |
60 void TouchLogSource::Fetch(const SysLogsSourceCallback& callback) { | 60 void TouchLogSource::Fetch(const SysLogsSourceCallback& callback) { |
61 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 61 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
62 DCHECK(!callback.is_null()); | 62 DCHECK(!callback.is_null()); |
63 | 63 |
64 SystemLogsResponse* response = new SystemLogsResponse; | 64 SystemLogsResponse* response = new SystemLogsResponse; |
65 base::PostTaskWithTraitsAndReply(FROM_HERE, | 65 base::PostTaskWithTraitsAndReply( |
66 base::TaskTraits().MayBlock().WithPriority( | 66 FROM_HERE, {base::MayBlock(), base::TaskPriority::BACKGROUND}, |
67 base::TaskPriority::BACKGROUND), | 67 base::Bind(&GetTouchLogsX11, response), |
68 base::Bind(&GetTouchLogsX11, response), | 68 base::Bind(callback, base::Owned(response))); |
69 base::Bind(callback, base::Owned(response))); | |
70 } | 69 } |
71 | 70 |
72 } // namespace system_logs | 71 } // namespace system_logs |
OLD | NEW |