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

Unified Diff: content/test/content_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
« no previous file with comments | « content/shell/shell_main_delegate.cc ('k') | content/test/test_content_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/content_test_suite.cc
===================================================================
--- content/test/content_test_suite.cc (revision 133033)
+++ content/test/content_test_suite.cc (working copy)
@@ -10,6 +10,7 @@
#include "content/browser/notification_service_impl.h"
#include "content/public/common/content_client.h"
#include "content/public/common/content_paths.h"
+#include "content/public/common/url_constants.h"
#include "content/test/test_content_client.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/ui_base_paths.h"
@@ -71,6 +72,11 @@
base::TestSuite::Initialize();
+ TestContentClient client_for_init;
+ content::SetContentClient(&client_for_init);
+ content::RegisterContentSchemes(false);
+ content::SetContentClient(NULL);
+
content::RegisterPathProvider();
ui::RegisterPathProvider();
« no previous file with comments | « content/shell/shell_main_delegate.cc ('k') | content/test/test_content_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698