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

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

Issue 2040143006: Implement the Sync promo in the password bubble on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests Created 4 years, 6 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/save_pending_password_view_controller.mm
diff --git a/chrome/browser/ui/cocoa/passwords/save_pending_password_view_controller.mm b/chrome/browser/ui/cocoa/passwords/save_pending_password_view_controller.mm
index 49a5b9dc642c242bf7498e8f58ea74bd087390d3..696e92eac5c3f35ff725541ed02be47fbf95b623 100644
--- a/chrome/browser/ui/cocoa/passwords/save_pending_password_view_controller.mm
+++ b/chrome/browser/ui/cocoa/passwords/save_pending_password_view_controller.mm
@@ -22,8 +22,13 @@
- (void)onSaveClicked:(id)sender {
ManagePasswordsBubbleModel* model = self.model;
- if (model)
+ if (model) {
model->OnSaveClicked();
+ if (model->ReplaceToShowSignInPromoIfNeeded()) {
+ [self.delegate refreshBubble];
+ return;
+ }
+ }
[self.delegate viewShouldDismiss];
}

Powered by Google App Engine
This is Rietveld 408576698