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

Unified Diff: ios/chrome/browser/web/error_page_content.mm

Issue 2823953004: [ObjC ARC] Converts ios/chrome/browser/web:web_internal to ARC. (Closed)
Patch Set: Address comments Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/chrome/browser/web/chrome_web_client.mm ('k') | ios/chrome/browser/web/error_page_generator.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/web/error_page_content.mm
diff --git a/ios/chrome/browser/web/error_page_content.mm b/ios/chrome/browser/web/error_page_content.mm
index 0fe454398fcf07fc2c03549cfb83f3b1e0d96aac..754576d4f19bfada564b9eef76e11bbf7fc25c76 100644
--- a/ios/chrome/browser/web/error_page_content.mm
+++ b/ios/chrome/browser/web/error_page_content.mm
@@ -6,12 +6,15 @@
#include <memory>
-#import "base/mac/scoped_nsobject.h"
#import "ios/chrome/browser/web/error_page_generator.h"
#include "ios/web/public/referrer.h"
#include "ui/base/page_transition_types.h"
#include "url/gurl.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
@implementation ErrorPageContent
#pragma mark -
@@ -35,13 +38,13 @@
isPost:(BOOL)isPost
isIncognito:(BOOL)isIncognito {
ErrorPageGenerator* generator =
- [[[ErrorPageGenerator alloc] initWithError:error
- isPost:isPost
- isIncognito:isIncognito] autorelease];
+ [[ErrorPageGenerator alloc] initWithError:error
+ isPost:isPost
+ isIncognito:isIncognito];
- base::scoped_nsobject<StaticHtmlViewController> HTMLViewController(
+ StaticHtmlViewController* HTMLViewController =
[[StaticHtmlViewController alloc] initWithGenerator:generator
- browserState:browserState]);
+ browserState:browserState];
return [super initWithLoader:loader
staticHTMLViewController:HTMLViewController
URL:url];
« no previous file with comments | « ios/chrome/browser/web/chrome_web_client.mm ('k') | ios/chrome/browser/web/error_page_generator.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698