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

Unified Diff: ios/chrome/browser/ui/settings/password_details_collection_view_controller.mm

Issue 2722783003: Separate deletion button in password settings (Closed)
Patch Set: Just rebased 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 | « no previous file | ios/chrome/browser/ui/settings/password_details_collection_view_controller_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/settings/password_details_collection_view_controller.mm
diff --git a/ios/chrome/browser/ui/settings/password_details_collection_view_controller.mm b/ios/chrome/browser/ui/settings/password_details_collection_view_controller.mm
index 220fce7ffe874ce369e369803e71b4dbef08e4cc..9eda71a87011e20dee90bd2dc3bd27cdc27d01c1 100644
--- a/ios/chrome/browser/ui/settings/password_details_collection_view_controller.mm
+++ b/ios/chrome/browser/ui/settings/password_details_collection_view_controller.mm
@@ -35,6 +35,7 @@ typedef NS_ENUM(NSInteger, SectionIdentifier) {
SectionIdentifierSite = kSectionIdentifierEnumZero,
SectionIdentifierUsername,
SectionIdentifierPassword,
+ SectionIdentifierDelete,
};
typedef NS_ENUM(NSInteger, ItemType) {
@@ -175,8 +176,10 @@ reauthenticationModule:(id<ReauthenticationProtocol>)reauthenticationModule
toSectionWithIdentifier:SectionIdentifierPassword];
[model addItem:[self passwordCopyButtonItem]
toSectionWithIdentifier:SectionIdentifierPassword];
+
+ [model addSectionWithIdentifier:SectionIdentifierDelete];
[model addItem:[self deletePasswordButtonItem]
- toSectionWithIdentifier:SectionIdentifierPassword];
+ toSectionWithIdentifier:SectionIdentifierDelete];
}
- (void)dealloc {
« no previous file with comments | « no previous file | ios/chrome/browser/ui/settings/password_details_collection_view_controller_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698