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

Side by Side Diff: ios/web/shell/shell_web_client.mm

Issue 2073753003: Convert ios_web_shell to ARC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@buildconfig-gn
Patch Set: rebase Created 4 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 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/shell/shell_web_client.h" 5 #include "ios/web/shell/shell_web_client.h"
6 6
7 #import <UIKit/UIKit.h> 7 #import <UIKit/UIKit.h>
8 8
9 #include "ios/web/public/user_agent.h" 9 #include "ios/web/public/user_agent.h"
10 #include "ios/web/shell/shell_web_main_parts.h" 10 #include "ios/web/shell/shell_web_main_parts.h"
11 11
12 #if !defined(__has_feature) || !__has_feature(objc_arc)
13 #error "This file requires ARC support."
14 #endif
15
12 namespace web { 16 namespace web {
13 17
14 ShellWebClient::ShellWebClient() { 18 ShellWebClient::ShellWebClient() {
15 } 19 }
16 20
17 ShellWebClient::~ShellWebClient() { 21 ShellWebClient::~ShellWebClient() {
18 } 22 }
19 23
20 WebMainParts* ShellWebClient::CreateWebMainParts() { 24 WebMainParts* ShellWebClient::CreateWebMainParts() {
21 web_main_parts_.reset(new ShellWebMainParts); 25 web_main_parts_.reset(new ShellWebMainParts);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 block_callback.Run(true); 64 block_callback.Run(true);
61 }]]; 65 }]];
62 } 66 }
63 [[UIApplication sharedApplication].keyWindow.rootViewController 67 [[UIApplication sharedApplication].keyWindow.rootViewController
64 presentViewController:alert 68 presentViewController:alert
65 animated:YES 69 animated:YES
66 completion:nil]; 70 completion:nil];
67 } 71 }
68 72
69 } // namespace web 73 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/shell/shell_url_request_context_getter.mm ('k') | ios/web/shell/shell_web_main_parts.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698