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

Unified Diff: ios/web/web_state/js/crw_js_message_dynamic_manager.mm

Issue 988383002: Upstream various ios/web utilities and helpers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@web-public-upstreaming
Patch Set: Created 5 years, 9 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: ios/web/web_state/js/crw_js_message_dynamic_manager.mm
diff --git a/ios/web/web_state/js/crw_js_message_dynamic_manager.mm b/ios/web/web_state/js/crw_js_message_dynamic_manager.mm
index 50059f0ce074a72623b6331616fe3fd154f7d92a..9067a1979652804b9d5688c24244c2cf1180023a 100644
--- a/ios/web/web_state/js/crw_js_message_dynamic_manager.mm
+++ b/ios/web/web_state/js/crw_js_message_dynamic_manager.mm
@@ -4,15 +4,20 @@
#import "ios/web/web_state/js/crw_js_message_dynamic_manager.h"
+#include "base/logging.h"
#import "ios/web/web_state/js/crw_js_common_manager.h"
-#include "ios/web/web_view_util.h"
@implementation CRWJSMessageDynamicManager
- (NSString*)scriptPath {
- if (web::IsWKWebViewEnabled())
- return @"message_dynamic_wk";
- return @"message_dynamic_ui";
+ switch ([[self receiver] webViewType]) {
+ case web::UI_WEB_VIEW_TYPE:
+ return @"message_dynamic_ui";
+ case web::WK_WEB_VIEW_TYPE:
+ return @"message_dynamic_wk";
+ }
+ NOTREACHED();
+ return nil;
}
- (NSString*)presenceBeacon {

Powered by Google App Engine
This is Rietveld 408576698