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

Side by Side Diff: ios/web/web_state/blocked_popup_info.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/web_state/blocked_popup_info.h" 5 #include "ios/web/web_state/blocked_popup_info.h"
6 6
7 #if !defined(__has_feature) || !__has_feature(objc_arc)
8 #error "This file requires ARC support."
9 #endif
10
7 namespace web { 11 namespace web {
8 12
9 BlockedPopupInfo::BlockedPopupInfo(const GURL& url, 13 BlockedPopupInfo::BlockedPopupInfo(const GURL& url,
10 const Referrer& referrer, 14 const Referrer& referrer,
11 NSString* window_name, 15 NSString* window_name,
12 ProceduralBlock show_popup_handler) 16 ProceduralBlock show_popup_handler)
13 : url_(url), 17 : url_(url),
14 referrer_(referrer), 18 referrer_(referrer),
15 window_name_([window_name copy]), 19 window_name_([window_name copy]),
16 show_popup_handler_([show_popup_handler copy]) { 20 show_popup_handler_([show_popup_handler copy]) {
(...skipping 13 matching lines...) Expand all
30 } 34 }
31 35
32 void BlockedPopupInfo::operator=(const BlockedPopupInfo& blocked_popup_info) { 36 void BlockedPopupInfo::operator=(const BlockedPopupInfo& blocked_popup_info) {
33 url_ = blocked_popup_info.url_; 37 url_ = blocked_popup_info.url_;
34 referrer_ = blocked_popup_info.referrer_; 38 referrer_ = blocked_popup_info.referrer_;
35 window_name_.reset([blocked_popup_info.window_name_ copy]); 39 window_name_.reset([blocked_popup_info.window_name_ copy]);
36 show_popup_handler_ = [blocked_popup_info.show_popup_handler_ copy]; 40 show_popup_handler_ = [blocked_popup_info.show_popup_handler_ copy];
37 } 41 }
38 42
39 } // namespace web 43 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/public/web_state/ui/crw_web_view_content_view.h ('k') | ios/web/web_state/context_menu_params.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698