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

Side by Side Diff: tools/android/forwarder2/device_controller.cc

Issue 1549203002: Switch to standard integer types in tools/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "tools/android/forwarder2/device_controller.h" 5 #include "tools/android/forwarder2/device_controller.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/basictypes.h"
10 #include "base/bind.h" 9 #include "base/bind.h"
11 #include "base/callback_helpers.h" 10 #include "base/callback_helpers.h"
12 #include "base/logging.h" 11 #include "base/logging.h"
13 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
14 #include "base/single_thread_task_runner.h" 13 #include "base/single_thread_task_runner.h"
15 #include "base/thread_task_runner_handle.h" 14 #include "base/thread_task_runner_handle.h"
16 #include "tools/android/forwarder2/command.h" 15 #include "tools/android/forwarder2/command.h"
17 #include "tools/android/forwarder2/device_listener.h" 16 #include "tools/android/forwarder2/device_listener.h"
18 #include "tools/android/forwarder2/socket.h" 17 #include "tools/android/forwarder2/socket.h"
19 #include "tools/android/forwarder2/util.h" 18 #include "tools/android/forwarder2/util.h"
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 return; 147 return;
149 } 148 }
150 DCHECK(controller->construction_task_runner_->RunsTasksOnCurrentThread()); 149 DCHECK(controller->construction_task_runner_->RunsTasksOnCurrentThread());
151 bool listener_did_exist = DeleteRefCountedValueInMap( 150 bool listener_did_exist = DeleteRefCountedValueInMap(
152 listener->listener_port(), &controller->listeners_); 151 listener->listener_port(), &controller->listeners_);
153 DCHECK(listener_did_exist); 152 DCHECK(listener_did_exist);
154 // Note that |listener| was deleted by DeleteRefCountedValueInMap(). 153 // Note that |listener| was deleted by DeleteRefCountedValueInMap().
155 } 154 }
156 155
157 } // namespace forwarder 156 } // namespace forwarder
OLDNEW
« no previous file with comments | « tools/android/forwarder2/device_controller.h ('k') | tools/android/forwarder2/device_listener.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698