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

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: cleanup TODOs. merge code. kill more threads. i never get tired of thread carnage. 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
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 274693739ed4d2a65c691b0d4af8a2c1d1b4630a..cf5a25c546209e246127e78b22915e1b3138e7e2 100644
--- a/ui/views/test/webview_test_helper.cc
+++ b/ui/views/test/webview_test_helper.cc
@@ -5,13 +5,12 @@
#include "ui/views/test/webview_test_helper.h"
#include "base/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);
@@ -19,9 +18,6 @@ WebViewTestHelper::WebViewTestHelper(base::MessageLoopForUI* ui_loop) {
// 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() {

Powered by Google App Engine
This is Rietveld 408576698