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

Unified Diff: ui/views/test/webview_test_helper.cc

Issue 17127002: Correctly integrate StoragePartition into TestingProfile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix InstantNTP test. 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 | « ui/views/test/webview_test_helper.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/test/webview_test_helper.cc
diff --git a/ui/views/test/webview_test_helper.cc b/ui/views/test/webview_test_helper.cc
index 243baf055b5428eb9081ea494138fe1b2a700cc7..81ac7b4869e1f2f879c8c0077cdd1ba036f2cf1b 100644
--- a/ui/views/test/webview_test_helper.cc
+++ b/ui/views/test/webview_test_helper.cc
@@ -4,24 +4,19 @@
#include "ui/views/test/webview_test_helper.h"
-#include "base/message_loop/message_loop.h"
-#include "content/public/test/test_browser_thread.h"
#include "content/public/test/test_content_client_initializer.h"
#include "ui/views/controls/webview/webview.h"
namespace views {
-WebViewTestHelper::WebViewTestHelper(base::MessageLoopForUI* ui_loop) {
+WebViewTestHelper::WebViewTestHelper() {
test_content_client_initializer_.reset(
- new content::TestContentClientInitializer);
+ new content::TestContentClientInitializer());
// Setup to register a new RenderViewHost factory which manufactures
// mock render process hosts. This ensures that we never create a 'real'
// render view host since support for it doesn't exist in unit tests.
test_content_client_initializer_->CreateTestRenderViewHosts();
-
- ui_thread_.reset(
- new content::TestBrowserThread(content::BrowserThread::UI, ui_loop));
}
WebViewTestHelper::~WebViewTestHelper() {
« no previous file with comments | « ui/views/test/webview_test_helper.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698