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

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

Issue 2916473002: [ObjC ARC] Converts ios/web:web to ARC. (Closed)
Patch Set: Tweaks to unit test memory management Created 3 years, 6 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/public/web_state/web_state_delegate_bridge.h" 5 #import "ios/web/public/web_state/web_state_delegate_bridge.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #import "ios/web/public/web_state/context_menu_params.h" 8 #import "ios/web/public/web_state/context_menu_params.h"
9 9
10 #if !defined(__has_feature) || !__has_feature(objc_arc)
11 #error "This file requires ARC support."
12 #endif
13
10 namespace web { 14 namespace web {
11 15
12 WebStateDelegateBridge::WebStateDelegateBridge(id<CRWWebStateDelegate> delegate) 16 WebStateDelegateBridge::WebStateDelegateBridge(id<CRWWebStateDelegate> delegate)
13 : delegate_(delegate) {} 17 : delegate_(delegate) {}
14 18
15 WebStateDelegateBridge::~WebStateDelegateBridge() {} 19 WebStateDelegateBridge::~WebStateDelegateBridge() {}
16 20
17 WebState* WebStateDelegateBridge::CreateNewWebState(WebState* source, 21 WebState* WebStateDelegateBridge::CreateNewWebState(WebState* source,
18 const GURL& url, 22 const GURL& url,
19 const GURL& opener_url, 23 const GURL& opener_url,
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 completionHandler:^(NSString* username, 97 completionHandler:^(NSString* username,
94 NSString* password) { 98 NSString* password) {
95 local_callback.Run(username, password); 99 local_callback.Run(username, password);
96 }]; 100 }];
97 } else { 101 } else {
98 local_callback.Run(nil, nil); 102 local_callback.Run(nil, nil);
99 } 103 }
100 } 104 }
101 105
102 } // web 106 } // web
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698