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

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

Issue 9950040: Get chrome:// dev tool urls hooked up in content_shell. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 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: chrome/test/base/chrome_test_suite.cc
===================================================================
--- chrome/test/base/chrome_test_suite.cc (revision 132480)
+++ chrome/test/base/chrome_test_suite.cc (working copy)
@@ -166,7 +166,11 @@
base::TestSuite::Initialize();
- chrome::RegisterChromeSchemes();
+ chrome::ChromeContentClient client_for_init;
+ content::SetContentClient(&client_for_init);
+ const bool kDontLockStandardSchemes = false;
+ content::RegisterContentSchemes(kDontLockStandardSchemes);
jam 2012/04/17 03:30:10 nit: i'm personally not a fan of adding variables
michaeln 2012/04/17 04:08:26 I've warmed up to this self-documenting style, but
michaeln 2012/04/17 04:11:46 Actually, the convention in webkit would be to mak
jam 2012/04/17 04:49:51 my preference would be to remove it :)
michaeln 2012/04/17 19:23:32 Done.
+ content::SetContentClient(NULL);
chrome::RegisterPathProvider();
content::RegisterPathProvider();

Powered by Google App Engine
This is Rietveld 408576698