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

Unified Diff: content/public/browser/browser_child_process_host_iterator.cc

Issue 12662019: Split the ProcessType enum into process types that content knows about (which will remain in src\co… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/browser_child_process_host_iterator.cc
===================================================================
--- content/public/browser/browser_child_process_host_iterator.cc (revision 189692)
+++ content/public/browser/browser_child_process_host_iterator.cc (working copy)
@@ -11,19 +11,18 @@
namespace content {
BrowserChildProcessHostIterator::BrowserChildProcessHostIterator()
- : all_(true), type_(content::PROCESS_TYPE_UNKNOWN) {
+ : all_(true), process_type_(PROCESS_TYPE_UNKNOWN) {
CHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)) <<
"BrowserChildProcessHostIterator must be used on the IO thread.";
iterator_ = BrowserChildProcessHostImpl::GetIterator()->begin();
}
-BrowserChildProcessHostIterator::BrowserChildProcessHostIterator(
- content::ProcessType type)
- : all_(false), type_(type) {
+BrowserChildProcessHostIterator::BrowserChildProcessHostIterator(int type)
+ : all_(false), process_type_(type) {
CHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)) <<
"BrowserChildProcessHostIterator must be used on the IO thread.";
iterator_ = BrowserChildProcessHostImpl::GetIterator()->begin();
- if (!Done() && (*iterator_)->GetData().type != type_)
+ if (!Done() && (*iterator_)->GetData().process_type != process_type_)
++(*this);
}
@@ -34,7 +33,7 @@
if (Done())
break;
- if (!all_ && (*iterator_)->GetData().type != type_)
+ if (!all_ && (*iterator_)->GetData().process_type != process_type_)
continue;
return true;

Powered by Google App Engine
This is Rietveld 408576698