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

Unified Diff: ios/web/test/web_test.mm

Issue 1929783002: [ios Mojo] Supporting code for define WebUI function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo_require_js
Patch Set: Actually use Map API Created 4 years, 7 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 | « ios/web/test/test_url_constants.cc ('k') | ios/web/webui/crw_web_ui_manager.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/test/web_test.mm
diff --git a/ios/web/test/web_test.mm b/ios/web/test/web_test.mm
index ba915585b160b53252e866bcd1c76ffd557a96ad..bf5563bd435bca22b5867118e4c82437afa1c046 100644
--- a/ios/web/test/web_test.mm
+++ b/ios/web/test/web_test.mm
@@ -14,6 +14,7 @@
#import "ios/web/navigation/crw_session_controller.h"
#include "ios/web/public/active_state_manager.h"
#include "ios/web/public/referrer.h"
+#include "ios/web/public/url_schemes.h"
#import "ios/web/public/web_state/ui/crw_web_delegate.h"
#import "ios/web/web_state/ui/crw_web_controller.h"
#import "ios/web/web_state/web_state_impl.h"
@@ -37,7 +38,13 @@ namespace web {
#pragma mark -
-WebTest::WebTest() : web_client_(base::WrapUnique(new TestWebClient)) {}
+WebTest::WebTest() : web_client_(base::WrapUnique(new TestWebClient)) {
+ static dispatch_once_t onceToken;
+ dispatch_once(&onceToken, ^{
+ RegisterWebSchemes(true);
+ });
+}
+
WebTest::~WebTest() {}
void WebTest::SetUp() {
« no previous file with comments | « ios/web/test/test_url_constants.cc ('k') | ios/web/webui/crw_web_ui_manager.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698