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

Side by Side Diff: ios/web/web_state/error_translation_util.mm

Issue 2605913002: Fix include import in ios/web (Closed)
Patch Set: add missing #import Created 3 years, 11 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #import "ios/web/web_state/error_translation_util.h" 5 #import "ios/web/web_state/error_translation_util.h"
6 6
7 #include <CFNetwork/CFNetwork.h> 7 #include <CFNetwork/CFNetwork.h>
8 8
9 #import "base/ios/ns_error_util.h" 9 #import "base/ios/ns_error_util.h"
10 #include "base/mac/scoped_nsobject.h" 10 #import "base/mac/scoped_nsobject.h"
11 #include "net/base/net_errors.h" 11 #include "net/base/net_errors.h"
12 12
13 #if !defined(__has_feature) || !__has_feature(objc_arc) 13 #if !defined(__has_feature) || !__has_feature(objc_arc)
14 #error "This file requires ARC support." 14 #error "This file requires ARC support."
15 #endif 15 #endif
16 16
17 namespace web { 17 namespace web {
18 18
19 namespace { 19 namespace {
20 // Translates an iOS error to a net error using |net_error_code| as an 20 // Translates an iOS error to a net error using |net_error_code| as an
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 DCHECK(error); 168 DCHECK(error);
169 NSString* net_error_domain = 169 NSString* net_error_domain =
170 [NSString stringWithUTF8String:net::kErrorDomain]; 170 [NSString stringWithUTF8String:net::kErrorDomain];
171 NSError* net_error = [NSError errorWithDomain:net_error_domain 171 NSError* net_error = [NSError errorWithDomain:net_error_domain
172 code:net_error_code 172 code:net_error_code
173 userInfo:nil]; 173 userInfo:nil];
174 return base::ios::ErrorWithAppendedUnderlyingError(error, net_error); 174 return base::ios::ErrorWithAppendedUnderlyingError(error, net_error);
175 } 175 }
176 176
177 } // namespace web 177 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/web_state/crw_web_view_proxy_impl.mm ('k') | ios/web/web_state/error_translation_util_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698