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

Side by Side Diff: content/browser/renderer_host/render_process_host.cc

Issue 7575010: Removal of Profile from content part 7. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "content/browser/renderer_host/render_process_host.h" 5 #include "content/browser/renderer_host/render_process_host.h"
6 6
7 #include "base/rand_util.h" 7 #include "base/rand_util.h"
8 #include "base/sys_info.h" 8 #include "base/sys_info.h"
9 #include "chrome/browser/profiles/profile.h"
10 #include "content/browser/browser_thread.h" 9 #include "content/browser/browser_thread.h"
11 #include "content/browser/child_process_security_policy.h" 10 #include "content/browser/child_process_security_policy.h"
12 #include "content/common/child_process_info.h" 11 #include "content/common/child_process_info.h"
13 #include "content/common/content_constants.h" 12 #include "content/common/content_constants.h"
14 #include "content/common/notification_service.h" 13 #include "content/common/notification_service.h"
15 14
16 namespace { 15 namespace {
17 16
18 size_t max_renderer_count_override = 0; 17 size_t max_renderer_count_override = 0;
19 18
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 210
212 // Now pick a random suitable renderer, if we have any. 211 // Now pick a random suitable renderer, if we have any.
213 if (!suitable_renderers.empty()) { 212 if (!suitable_renderers.empty()) {
214 int suitable_count = static_cast<int>(suitable_renderers.size()); 213 int suitable_count = static_cast<int>(suitable_renderers.size());
215 int random_index = base::RandInt(0, suitable_count - 1); 214 int random_index = base::RandInt(0, suitable_count - 1);
216 return suitable_renderers[random_index]; 215 return suitable_renderers[random_index];
217 } 216 }
218 217
219 return NULL; 218 return NULL;
220 } 219 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/database_message_filter.cc ('k') | content/browser/renderer_host/render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698