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

Side by Side Diff: ios/web/web_view_util.mm

Issue 790803002: Upstream JavaScript injection for iOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ios/web/web_view_util.h"
6
7 #include "base/ios/ios_util.h"
8
9 namespace {
10
11 bool g_force_ui_web_view = false;
sdefresne 2014/12/10 15:30:24 This is a C++ file, so this should use mixedCamelC
droger 2014/12/10 17:48:55 C++ variables don't use camel case. A search for ^
12
13 } // namespace
14
15 namespace web {
16
17 bool IsWKWebViewEnabled() {
18 #if defined(ENABLE_WKWEBVIEW)
19 // Eventually this may be a dynamic flag, but for now it's purely a
20 // compile-time option.
21 return !g_force_ui_web_view && base::ios::IsRunningOnIOS8OrLater();
22 #else
23 return false;
24 #endif
25 }
26
27 void SetForceUIWebView(bool flag) {
28 g_force_ui_web_view = flag;
29 }
30
31 bool GetForceUIWebView() {
32 return g_force_ui_web_view;
33 }
34
35 } // namespace web
OLDNEW
« ios/web/web_state/js/crw_js_injection_receiver.mm ('K') | « ios/web/web_view_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698