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

Side by Side Diff: ios/web/shell/app_delegate.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
« no previous file with comments | « ios/web/shell/app_delegate.h ('k') | ios/web/shell/shell_browser_state.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #import "ios/web/shell/app_delegate.h" 5 #import "ios/web/shell/app_delegate.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #import "base/mac/scoped_nsobject.h" 9 #import "base/mac/scoped_nsobject.h"
10 #include "ios/web/public/app/web_main.h" 10 #include "ios/web/public/app/web_main.h"
11 #include "ios/web/public/web_client.h" 11 #include "ios/web/public/web_client.h"
12 #include "ios/web/public/web_state/web_state.h" 12 #include "ios/web/public/web_state/web_state.h"
13 #include "ios/web/shell/shell_browser_state.h" 13 #include "ios/web/shell/shell_browser_state.h"
14 #include "ios/web/shell/shell_main_delegate.h" 14 #include "ios/web/shell/shell_main_delegate.h"
15 #include "ios/web/shell/shell_web_client.h" 15 #include "ios/web/shell/shell_web_client.h"
16 #import "ios/web/shell/view_controller.h" 16 #import "ios/web/shell/view_controller.h"
17 17
18 #if !defined(__has_feature) || !__has_feature(objc_arc)
19 #error "This file requires ARC support."
20 #endif
21
18 @interface AppDelegate () { 22 @interface AppDelegate () {
19 std::unique_ptr<web::ShellMainDelegate> _delegate; 23 std::unique_ptr<web::ShellMainDelegate> _delegate;
20 std::unique_ptr<web::WebMain> _webMain; 24 std::unique_ptr<web::WebMain> _webMain;
21 } 25 }
22 @end 26 @end
23 27
24 @implementation AppDelegate 28 @implementation AppDelegate
25 29
26 @synthesize window = _window; 30 @synthesize window = _window;
27 31
(...skipping 28 matching lines...) Expand all
56 60
57 - (void)applicationDidBecomeActive:(UIApplication*)application { 61 - (void)applicationDidBecomeActive:(UIApplication*)application {
58 } 62 }
59 63
60 - (void)applicationWillTerminate:(UIApplication*)application { 64 - (void)applicationWillTerminate:(UIApplication*)application {
61 _webMain.reset(); 65 _webMain.reset();
62 _delegate.reset(); 66 _delegate.reset();
63 } 67 }
64 68
65 @end 69 @end
OLDNEW
« no previous file with comments | « ios/web/shell/app_delegate.h ('k') | ios/web/shell/shell_browser_state.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698