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

Unified Diff: chrome/browser/ui/cocoa/autofill/autofill_sign_in_container.mm

Issue 663643002: requestAutocomplete (desktop): don't get stuck in infinite loop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests Created 6 years, 2 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/autofill/autofill_sign_in_container.mm
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_sign_in_container.mm b/chrome/browser/ui/cocoa/autofill/autofill_sign_in_container.mm
index 3cdd4479c323ecb0d1368e6b261aea6a1df8cc8d..ed50f1f1db01eb4c53e1cbcf401aa01ecc5de63e 100644
--- a/chrome/browser/ui/cocoa/autofill/autofill_sign_in_container.mm
+++ b/chrome/browser/ui/cocoa/autofill/autofill_sign_in_container.mm
@@ -80,7 +80,7 @@ void CocoaSignInDelegate::HandleKeyboardEvent(
[self setView:webContentView];
}
-- (void)loadSignInPage {
+- (void)loadSignInPage:(const GURL&)url {
DCHECK(webContents_.get());
// Ensure initial minimum size doesn't cause resize.
@@ -98,11 +98,10 @@ void CocoaSignInDelegate::HandleKeyboardEvent(
gfx::Size(NSSizeToCGSize(initialMinSize)),
gfx::Size(NSSizeToCGSize(maxSize_)),
[self view]));
- webContents_->GetController().LoadURL(
- dialog_->delegate()->SignInUrl(),
- content::Referrer(),
- ui::PAGE_TRANSITION_AUTO_TOPLEVEL,
- std::string());
+ webContents_->GetController().LoadURL(url,
+ content::Referrer(),
+ ui::PAGE_TRANSITION_AUTO_TOPLEVEL,
+ std::string());
}
- (content::NavigationController*)navigationController {

Powered by Google App Engine
This is Rietveld 408576698