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

Side by Side Diff: ios/web/public/web_client.mm

Issue 2396553002: [ARC] Converts part of ios/web/ui to ARC.
Patch Set: co 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ios/web/public/web_client.h" 5 #include "ios/web/public/web_client.h"
6 6
7 #include <Foundation/Foundation.h> 7 #include <Foundation/Foundation.h>
8 8
9 #if !defined(__has_feature) || !__has_feature(objc_arc)
10 #error "This file requires ARC support."
11 #endif
12
9 namespace web { 13 namespace web {
10 14
11 static WebClient* g_client; 15 static WebClient* g_client;
12 16
13 void SetWebClient(WebClient* client) { 17 void SetWebClient(WebClient* client) {
14 g_client = client; 18 g_client = client;
15 } 19 }
16 20
17 WebClient* GetWebClient() { 21 WebClient* GetWebClient() {
18 return g_client; 22 return g_client;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 WebState* web_state, 82 WebState* web_state,
79 int cert_error, 83 int cert_error,
80 const net::SSLInfo& ssl_info, 84 const net::SSLInfo& ssl_info,
81 const GURL& request_url, 85 const GURL& request_url,
82 bool overridable, 86 bool overridable,
83 const base::Callback<void(bool)>& callback) { 87 const base::Callback<void(bool)>& callback) {
84 callback.Run(false); 88 callback.Run(false);
85 } 89 }
86 90
87 } // namespace web 91 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/public/url_schemes.mm ('k') | ios/web/public/web_state/crw_web_view_scroll_view_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698