Skip to content

Commit

Permalink
Make WKWebView default for the web shell.
Browse files Browse the repository at this point in the history
Change web shell so that it defaults to WKWebView, if it is
supported. Also remove use of FORCE_ENABLE_WKWEBVIEW in the web
shell.

BUG=

Review URL: https://codereview.chromium.org/1586283002

Cr-Commit-Position: refs/heads/master@{#369588}
  • Loading branch information
baxley authored and Commit bot committed Jan 14, 2016
1 parent e589ef9 commit 2db70b3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions ios/web/shell/view_controller.mm
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,9 @@
#include "ui/base/page_transition_types.h"

namespace {
// Returns true if WKWebView should be used instead of UIWebView.
// TODO(stuartmorgan): Decide on a better way to control this.
// Returns true if WKWebView is supported.
bool UseWKWebView() {
#if defined(FORCE_ENABLE_WKWEBVIEW)
return web::IsWKWebViewSupported();
#else
return false;
#endif
}
}

Expand Down

0 comments on commit 2db70b3

Please sign in to comment.