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

Side by Side Diff: chrome/browser/chromeos/system_logs/touch_log_source_x11.cc

Issue 2858073002: Use constexpr TaskTraits constructor in chrome. (Closed)
Patch Set: Created 3 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 (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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698