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/test_blink_web_unit_test_support.cc

Issue 2402983002: [TimeZoneMonitor] Decouple renderer side impl from content to blink. (Closed)
Patch Set: Inside modules use V8PerIsolateData::mainThreadIsolate() instead of blink::mainThreadIsolate() Created 4 years, 2 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: content/test/test_blink_web_unit_test_support.cc
diff --git a/content/test/test_blink_web_unit_test_support.cc b/content/test/test_blink_web_unit_test_support.cc
index b8f549db21f7bb1b7ea3635c4f4af5ac58bf8891..eb3d402917fe9e627f4338f88cd326b75d0eb6dc 100644
--- a/content/test/test_blink_web_unit_test_support.cc
+++ b/content/test/test_blink_web_unit_test_support.cc
@@ -19,6 +19,7 @@
#include "cc/blink/web_layer_impl.h"
#include "cc/test/test_shared_bitmap_manager.h"
#include "cc/trees/layer_tree_settings.h"
+#include "content/app/mojo/mojo_init.h"
#include "content/child/web_url_loader_impl.h"
#include "content/test/mock_webclipboard_impl.h"
#include "content/test/web_gesture_curve_mock.h"
@@ -124,6 +125,9 @@ TestBlinkWebUnitTestSupport::TestBlinkWebUnitTestSupport() {
// an error that it's not set. Cleared by ClearInstanceForTesting() below.
base::FeatureList::SetInstance(base::WrapUnique(new base::FeatureList));
+ // Initialize mojo firstly to enable Blink initialization use it.
+ InitializeMojo();
+
blink::initialize(this);
blink::setLayoutTestMode(true);
blink::WebRuntimeFeatures::enableDatabase(true);

Powered by Google App Engine
This is Rietveld 408576698