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

Unified Diff: ios/chrome/browser/ui/show_privacy_settings_util.mm

Issue 2569713002: [ObjC ARC] Converts ios/chrome/browser/ui:ui to ARC. (Closed)
Patch Set: Created 4 years 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
Index: ios/chrome/browser/ui/show_privacy_settings_util.mm
diff --git a/ios/chrome/browser/ui/show_privacy_settings_util.mm b/ios/chrome/browser/ui/show_privacy_settings_util.mm
index 1555ab1ea27f3d780db052485d17c07b2d24688b..8b6898344dfd4266d24bc3abf79a4b9cfb3421ef 100644
--- a/ios/chrome/browser/ui/show_privacy_settings_util.mm
+++ b/ios/chrome/browser/ui/show_privacy_settings_util.mm
@@ -4,15 +4,17 @@
#import "ios/chrome/browser/ui/show_privacy_settings_util.h"
-#import "base/mac/scoped_nsobject.h"
#import "ios/chrome/browser/ui/commands/UIKit+ChromeExecuteCommand.h"
#import "ios/chrome/browser/ui/commands/generic_chrome_command.h"
#include "ios/chrome/browser/ui/commands/ios_command_ids.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
void ShowClearBrowsingData() {
- base::scoped_nsobject<GenericChromeCommand> command(
- [[GenericChromeCommand alloc]
- initWithTag:IDC_SHOW_CLEAR_BROWSING_DATA_SETTINGS]);
+ GenericChromeCommand* command = [[GenericChromeCommand alloc]
+ initWithTag:IDC_SHOW_CLEAR_BROWSING_DATA_SETTINGS];
UIWindow* main_window = [[UIApplication sharedApplication] keyWindow];
[main_window chromeExecuteCommand:command];
}
« no previous file with comments | « ios/chrome/browser/ui/show_mail_composer_util.mm ('k') | ios/chrome/browser/ui/side_swipe_gesture_recognizer.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698