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

Unified Diff: chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_cocoa_unittest.mm

Issue 1009953002: Integrate ManagePasswordsState into ManagePasswordsUIController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android Created 5 years, 9 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: chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_cocoa_unittest.mm
diff --git a/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_cocoa_unittest.mm b/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_cocoa_unittest.mm
index d48f748cece24a8c9674622e078027681637feeb..bd14004e339f48c8efc6cb8d263ff6755becea5d 100644
--- a/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_cocoa_unittest.mm
+++ b/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_cocoa_unittest.mm
@@ -46,7 +46,10 @@ class ManagePasswordsBubbleCocoaTest : public CocoaProfileTest {
browser()->tab_strip_model()->AppendWebContents(
test_web_contents_, /*foreground=*/true);
// Set the initial state.
- ui_controller->SetState(password_manager::ui::PENDING_PASSWORD_STATE);
+ ScopedVector<autofill::PasswordForm> forms;
+ forms.push_back(new autofill::PasswordForm);
+ forms.back()->origin = GURL("http://example.com");
+ ui_controller->PretendSubmittedPassword(forms.Pass());
}
content::WebContents* CreateWebContents() {

Powered by Google App Engine
This is Rietveld 408576698