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

Side by Side Diff: components/nacl/browser/nacl_broker_service_win.cc

Issue 83553003: Few cleanups in components/nacl due to comments post landing (r236821). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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
« no previous file with comments | « no previous file | components/nacl/browser/nacl_process_host.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 (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 "components/nacl/browser/nacl_broker_service_win.h" 5 #include "components/nacl/browser/nacl_broker_service_win.h"
6 6
7 #include "components/nacl/browser/nacl_process_host.h" 7 #include "components/nacl/browser/nacl_process_host.h"
8 #include "components/nacl/common/nacl_process_type.h" 8 #include "components/nacl/common/nacl_process_type.h"
9 #include "content/public/browser/browser_child_process_host_iterator.h" 9 #include "content/public/browser/browser_child_process_host_iterator.h"
10 10
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 NaClProcessHost* client = it->second.get(); 89 NaClProcessHost* client = it->second.get();
90 if (client) 90 if (client)
91 client->OnDebugExceptionHandlerLaunchedByBroker(success); 91 client->OnDebugExceptionHandlerLaunchedByBroker(success);
92 pending_debuggers_.erase(it); 92 pending_debuggers_.erase(it);
93 } 93 }
94 94
95 NaClBrokerHost* NaClBrokerService::GetBrokerHost() { 95 NaClBrokerHost* NaClBrokerService::GetBrokerHost() {
96 BrowserChildProcessHostIterator iter(PROCESS_TYPE_NACL_BROKER); 96 BrowserChildProcessHostIterator iter(PROCESS_TYPE_NACL_BROKER);
97 while (!iter.Done()) { 97 while (!iter.Done()) {
98 NaClBrokerHost* host = static_cast<NaClBrokerHost*>( 98 NaClBrokerHost* host = static_cast<NaClBrokerHost*>(iter.GetDelegate());
99 iter.GetDelegate());
100 if (!host->IsTerminating()) 99 if (!host->IsTerminating())
101 return host; 100 return host;
102 ++iter; 101 ++iter;
103 } 102 }
104 return NULL; 103 return NULL;
105 } 104 }
106 105
107 } // namespace nacl 106 } // namespace nacl
OLDNEW
« no previous file with comments | « no previous file | components/nacl/browser/nacl_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698