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

Side by Side Diff: ios/chrome/browser/ui/settings/password_details_collection_view_controller.mm

Issue 2595213003: Enable -Wundeclared-selector on ios. (Closed)
Patch Set: Fix more warnings. Created 3 years, 12 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/chrome/browser/ui/settings/password_details_collection_view_control ler.h" 5 #import "ios/chrome/browser/ui/settings/password_details_collection_view_control ler.h"
6 6
7 #import "base/ios/weak_nsobject.h" 7 #import "base/ios/weak_nsobject.h"
8 #include "base/mac/foundation_util.h" 8 #include "base/mac/foundation_util.h"
9 #include "base/mac/scoped_nsobject.h" 9 #include "base/mac/scoped_nsobject.h"
10 #include "base/strings/sys_string_conversions.h" 10 #include "base/strings/sys_string_conversions.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 if (self) { 83 if (self) {
84 _weakDelegate.reset(delegate); 84 _weakDelegate.reset(delegate);
85 _weakReauthenticationModule.reset(reauthenticationModule); 85 _weakReauthenticationModule.reset(reauthenticationModule);
86 _passwordForm = passwordForm; 86 _passwordForm = passwordForm;
87 _username.reset([username copy]); 87 _username.reset([username copy]);
88 _password.reset([password copy]); 88 _password.reset([password copy]);
89 self.title = 89 self.title =
90 [PasswordDetailsCollectionViewController simplifyOrigin:origin]; 90 [PasswordDetailsCollectionViewController simplifyOrigin:origin];
91 NSNotificationCenter* defaultCenter = [NSNotificationCenter defaultCenter]; 91 NSNotificationCenter* defaultCenter = [NSNotificationCenter defaultCenter];
92 [defaultCenter addObserver:self 92 [defaultCenter addObserver:self
93 selector:@selector(hidePassword:) 93 selector:@selector(hidePassword)
94 name:UIApplicationDidEnterBackgroundNotification 94 name:UIApplicationDidEnterBackgroundNotification
95 object:nil]; 95 object:nil];
96 96
97 [self loadModel]; 97 [self loadModel];
98 } 98 }
99 return self; 99 return self;
100 } 100 }
101 101
102 + (NSString*)simplifyOrigin:(NSString*)origin { 102 + (NSString*)simplifyOrigin:(NSString*)origin {
103 NSString* originWithoutScheme = nil; 103 NSString* originWithoutScheme = nil;
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 case ItemTypePassword: 334 case ItemTypePassword:
335 return [MDCCollectionViewCell 335 return [MDCCollectionViewCell
336 cr_preferredHeightForWidth:CGRectGetWidth(collectionView.bounds) 336 cr_preferredHeightForWidth:CGRectGetWidth(collectionView.bounds)
337 forItem:item]; 337 forItem:item];
338 default: 338 default:
339 return MDCCellDefaultOneLineHeight; 339 return MDCCellDefaultOneLineHeight;
340 } 340 }
341 } 341 }
342 342
343 @end 343 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698