Chromium Code Reviews| 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()); |