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

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

Issue 2860453004: Fix PasswordsSettingsTestCase.testCopyPasswordToast (Closed)
Patch Set: Add scrolling Created 3 years, 7 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
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 f6583d911761688dc3515190cbb3a601e81f93b6..8b79c2269411f0b169feb0356f6d2b316f2589ac 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
@@ -97,6 +97,8 @@ reauthenticationModule:(id<ReauthenticationProtocol>)reauthenticationModule
_site = base::SysUTF8ToNSString(_passwordForm.origin.spec());
self.title =
[PasswordDetailsCollectionViewController simplifyOrigin:origin];
+ self.collectionViewAccessibilityIdentifier =
+ @"PasswordDetailsCollectionViewController";
NSNotificationCenter* defaultCenter = [NSNotificationCenter defaultCenter];
[defaultCenter addObserver:self
selector:@selector(hidePassword)
@@ -377,6 +379,7 @@ reauthenticationModule:(id<ReauthenticationProtocol>)reauthenticationModule
// to mock it in the unittest, and avoid having an EGTest just for that?
MDCSnackbarMessage* copyPasswordResultMessage =
[MDCSnackbarMessage messageWithText:message];
+ copyPasswordResultMessage.category = @"PasswordsSnackbarCategory";
[MDCSnackbarManager showMessage:copyPasswordResultMessage];
}

Powered by Google App Engine
This is Rietveld 408576698