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

Side by Side Diff: ios/chrome/browser/passwords/password_generation_utils.mm

Issue 2512983002: [ObjC ARC] Converts ios/chrome/browser/passwords:passwords_generation_utils to ARC.Automatically … (Closed)
Patch Set: Created 4 years, 1 month 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/chrome/browser/passwords/BUILD.gn ('k') | no next file » | 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 #include "ios/chrome/browser/passwords/password_generation_utils.h" 5 #include "ios/chrome/browser/passwords/password_generation_utils.h"
6 6
7 #include "base/i18n/rtl.h" 7 #include "base/i18n/rtl.h"
8 #include "ios/chrome/browser/ui/ui_util.h" 8 #include "ios/chrome/browser/ui/ui_util.h"
9 9
10 #if !defined(__has_feature) || !__has_feature(objc_arc)
11 #error "This file requires ARC support."
12 #endif
13
10 namespace passwords { 14 namespace passwords {
11 15
12 namespace { 16 namespace {
13 17
14 const CGFloat kPadding = IsIPadIdiom() ? 16 : 8; 18 const CGFloat kPadding = IsIPadIdiom() ? 16 : 8;
15 19
16 // The actual implementation of |RunPipeline| that begins with the first block 20 // The actual implementation of |RunPipeline| that begins with the first block
17 // in |blocks|. 21 // in |blocks|.
18 void RunSearchPipeline(NSArray* blocks, 22 void RunSearchPipeline(NSArray* blocks,
19 PipelineCompletionBlock on_complete, 23 PipelineCompletionBlock on_complete,
(...skipping 21 matching lines...) Expand all
41 (CGRectGetHeight(outer_frame) - CGRectGetHeight(inner_frame)) / 2.0; 45 (CGRectGetHeight(outer_frame) - CGRectGetHeight(inner_frame)) / 2.0;
42 inner_frame.origin = CGPointMake(x, y); 46 inner_frame.origin = CGPointMake(x, y);
43 return inner_frame; 47 return inner_frame;
44 } 48 }
45 49
46 void RunSearchPipeline(NSArray* blocks, PipelineCompletionBlock on_complete) { 50 void RunSearchPipeline(NSArray* blocks, PipelineCompletionBlock on_complete) {
47 RunSearchPipeline(blocks, on_complete, 0); 51 RunSearchPipeline(blocks, on_complete, 0);
48 } 52 }
49 53
50 } // namespace passwords 54 } // namespace passwords
OLDNEW
« no previous file with comments | « ios/chrome/browser/passwords/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698