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

Unified Diff: chrome/test/base/chrome_test_suite.cc

Issue 18119009: Make utility process run in-process when running in single-process mode. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: undo unnecessary changes Created 7 years, 5 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
« no previous file with comments | « chrome/browser/extensions/startup_helper.cc ('k') | chrome/utility/chrome_content_utility_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/chrome_test_suite.cc
===================================================================
--- chrome/test/base/chrome_test_suite.cc (revision 210446)
+++ chrome/test/base/chrome_test_suite.cc (working copy)
@@ -26,6 +26,7 @@
#include "chrome/common/extensions/permissions/chrome_api_permissions.h"
#include "chrome/common/url_constants.h"
#include "chrome/test/base/testing_browser_process.h"
+#include "chrome/utility/chrome_content_utility_client.h"
#include "content/public/test/test_launcher.h"
#include "extensions/common/extension_paths.h"
#include "net/base/net_errors.h"
@@ -144,7 +145,9 @@
// TODO(ios): Bring this back once ChromeContentBrowserClient is building.
#if !defined(OS_IOS)
browser_content_client_.reset(new chrome::ChromeContentBrowserClient());
- SetBrowserClientForTesting(browser_content_client_.get());
+ content::SetBrowserClientForTesting(browser_content_client_.get());
+ utility_content_client_.reset(new chrome::ChromeContentUtilityClient());
+ content::SetUtilityClientForTesting(utility_content_client_.get());
#endif
SetUpHostResolver();
@@ -161,6 +164,7 @@
// TODO(ios): Bring this back once ChromeContentBrowserClient is building.
#if !defined(OS_IOS)
browser_content_client_.reset();
+ utility_content_client_.reset();
#endif
content_client_.reset();
content::SetContentClient(NULL);
@@ -184,6 +188,7 @@
// TODO(ios): Bring this back once ChromeContentBrowserClient is building.
#if !defined(OS_IOS)
scoped_ptr<chrome::ChromeContentBrowserClient> browser_content_client_;
+ scoped_ptr<chrome::ChromeContentUtilityClient> utility_content_client_;
#endif
scoped_refptr<LocalHostResolverProc> host_resolver_proc_;
« no previous file with comments | « chrome/browser/extensions/startup_helper.cc ('k') | chrome/utility/chrome_content_utility_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698