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

Unified Diff: chrome/browser/ui/passwords/manage_passwords_ui_controller.cc

Issue 2694893002: Integrate SMS service with Desktop iOS promotion (Closed)
Patch Set: Addressing comments/Update phone number usage/Change view-controller relation/Pending tests Created 3 years, 10 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/passwords/manage_passwords_ui_controller.cc
diff --git a/chrome/browser/ui/passwords/manage_passwords_ui_controller.cc b/chrome/browser/ui/passwords/manage_passwords_ui_controller.cc
index 077edddd041926c677f5ae4300a42fca98cef3bf..401e347964e600c7b3887f0d722a0a2df412fb1a 100644
--- a/chrome/browser/ui/passwords/manage_passwords_ui_controller.cc
+++ b/chrome/browser/ui/passwords/manage_passwords_ui_controller.cc
@@ -16,6 +16,9 @@
#include "chrome/browser/ui/browser_navigator_params.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/chrome_pages.h"
+#include "chrome/browser/ui/desktop_ios_promotion/desktop_ios_promotion.h"
+#include "chrome/browser/ui/desktop_ios_promotion/desktop_ios_promotion_controller.h"
+#include "chrome/browser/ui/desktop_ios_promotion/desktop_ios_promotion_util.h"
#include "chrome/browser/ui/location_bar/location_bar.h"
#include "chrome/browser/ui/passwords/manage_passwords_icon_view.h"
#include "chrome/browser/ui/passwords/password_dialog_controller_impl.h"
@@ -323,6 +326,10 @@ void ManagePasswordsUIController::ChooseCredential(
UpdateBubbleAndIconVisibility();
}
+DesktopIOSPromotion* ManagePasswordsUIController::GetDesktopIOSPromotion() {
+ return CreateDesktopIOSPromotion();
sky 2017/02/17 00:57:23 Why does this always call Create? I wouldn't expec
mrefaat 2017/02/17 04:31:49 removed it.
+}
+
void ManagePasswordsUIController::NavigateToSmartLockHelpPage() {
chrome::NavigateParams params(
chrome::FindBrowserWithWebContents(web_contents()),
@@ -400,6 +407,13 @@ AccountChooserPrompt* ManagePasswordsUIController::CreateAccountChooser(
return CreateAccountChooserPromptView(controller, web_contents());
}
+DesktopIOSPromotion* ManagePasswordsUIController::CreateDesktopIOSPromotion() {
+ ios_promotion_controller_.reset(new DesktopIOSPromotionController(
+ Profile::FromBrowserContext(web_contents()->GetBrowserContext()),
+ desktop_ios_promotion::PromotionEntryPoint::SAVE_PASSWORD_BUBBLE));
+ return CreateDesktopIOSPromotionView(ios_promotion_controller_.get());
+}
+
AutoSigninFirstRunPrompt* ManagePasswordsUIController::CreateAutoSigninPrompt(
PasswordDialogController* controller) {
return CreateAutoSigninPromptView(controller, web_contents());

Powered by Google App Engine
This is Rietveld 408576698