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

Side by Side Diff: chromeos/dbus/fake_permission_broker_client.cc

Issue 2854953005: Use constexpr TaskTraits constructor in chromeos. (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
« no previous file with comments | « chromeos/dbus/fake_cros_disks_client.cc ('k') | chromeos/dbus/lorgnette_manager_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 "chromeos/dbus/fake_permission_broker_client.h" 5 #include "chromeos/dbus/fake_permission_broker_client.h"
6 6
7 #include <fcntl.h> 7 #include <fcntl.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 void FakePermissionBrokerClient::CheckPathAccess( 56 void FakePermissionBrokerClient::CheckPathAccess(
57 const std::string& path, 57 const std::string& path,
58 const ResultCallback& callback) { 58 const ResultCallback& callback) {
59 callback.Run(true); 59 callback.Run(true);
60 } 60 }
61 61
62 void FakePermissionBrokerClient::OpenPath(const std::string& path, 62 void FakePermissionBrokerClient::OpenPath(const std::string& path,
63 const OpenPathCallback& callback, 63 const OpenPathCallback& callback,
64 const ErrorCallback& error_callback) { 64 const ErrorCallback& error_callback) {
65 base::PostTaskWithTraits( 65 base::PostTaskWithTraits(
66 FROM_HERE, base::TaskTraits() 66 FROM_HERE,
67 .WithShutdownBehavior( 67 {base::MayBlock(), base::TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN},
68 base::TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN)
69 .MayBlock(),
70 base::Bind(&chromeos::OpenPath, path, callback, error_callback, 68 base::Bind(&chromeos::OpenPath, path, callback, error_callback,
71 base::ThreadTaskRunnerHandle::Get())); 69 base::ThreadTaskRunnerHandle::Get()));
72 } 70 }
73 71
74 void FakePermissionBrokerClient::RequestTcpPortAccess( 72 void FakePermissionBrokerClient::RequestTcpPortAccess(
75 uint16_t port, 73 uint16_t port,
76 const std::string& interface, 74 const std::string& interface,
77 int lifeline_fd, 75 int lifeline_fd,
78 const ResultCallback& callback) { 76 const ResultCallback& callback) {
79 callback.Run(true); 77 callback.Run(true);
(...skipping 15 matching lines...) Expand all
95 } 93 }
96 94
97 void FakePermissionBrokerClient::ReleaseUdpPort( 95 void FakePermissionBrokerClient::ReleaseUdpPort(
98 uint16_t port, 96 uint16_t port,
99 const std::string& interface, 97 const std::string& interface,
100 const ResultCallback& callback) { 98 const ResultCallback& callback) {
101 callback.Run(true); 99 callback.Run(true);
102 } 100 }
103 101
104 } // namespace chromeos 102 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_cros_disks_client.cc ('k') | chromeos/dbus/lorgnette_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698