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

Side by Side Diff: chrome/browser/debugger/inspectable_tab_proxy.cc

Issue 6609008: Change other usages of .size() to .empty() when applicable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Peter nits Created 9 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/debugger/inspectable_tab_proxy.h" 5 #include "chrome/browser/debugger/inspectable_tab_proxy.h"
6 6
7 #include "base/string_number_conversions.h" 7 #include "base/string_number_conversions.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "chrome/browser/browser_list.h" 9 #include "chrome/browser/browser_list.h"
10 #include "chrome/browser/debugger/debugger_remote_service.h" 10 #include "chrome/browser/debugger/debugger_remote_service.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 DevToolsClientHost* InspectableTabProxy::NewClientHost( 98 DevToolsClientHost* InspectableTabProxy::NewClientHost(
99 int32 id, 99 int32 id,
100 DebuggerRemoteService* service) { 100 DebuggerRemoteService* service) {
101 DevToolsClientHostImpl* client_host = 101 DevToolsClientHostImpl* client_host =
102 new DevToolsClientHostImpl(id, service, &id_to_client_host_map_); 102 new DevToolsClientHostImpl(id, service, &id_to_client_host_map_);
103 id_to_client_host_map_[id] = client_host; 103 id_to_client_host_map_[id] = client_host;
104 return client_host; 104 return client_host;
105 } 105 }
106 106
107 void InspectableTabProxy::OnRemoteDebuggerDetached() { 107 void InspectableTabProxy::OnRemoteDebuggerDetached() {
108 while (id_to_client_host_map_.size() > 0) { 108 while (!id_to_client_host_map_.empty()) {
109 IdToClientHostMap::iterator it = id_to_client_host_map_.begin(); 109 IdToClientHostMap::iterator it = id_to_client_host_map_.begin();
110 it->second->debugger_remote_service()->DetachFromTab( 110 it->second->debugger_remote_service()->DetachFromTab(
111 base::IntToString(it->first), NULL); 111 base::IntToString(it->first), NULL);
112 } 112 }
113 } 113 }
OLDNEW
« no previous file with comments | « chrome/browser/debugger/extension_ports_remote_service.cc ('k') | chrome/browser/download/download_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698