| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/password_manager/auto_signin_first_run_infobar_delegate
.h" | 5 #include "chrome/browser/password_manager/auto_signin_first_run_infobar_delegate
.h" |
| 6 | 6 |
| 7 #include "chrome/browser/infobars/infobar_service.h" | 7 #include "chrome/browser/infobars/infobar_service.h" |
| 8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
| 9 #include "chrome/browser/sync/profile_sync_service.h" | |
| 10 #include "chrome/browser/sync/profile_sync_service_factory.h" | 9 #include "chrome/browser/sync/profile_sync_service_factory.h" |
| 11 #include "chrome/browser/ui/android/infobars/auto_signin_first_run_infobar.h" | 10 #include "chrome/browser/ui/android/infobars/auto_signin_first_run_infobar.h" |
| 12 #include "chrome/browser/ui/passwords/manage_passwords_view_utils.h" | 11 #include "chrome/browser/ui/passwords/manage_passwords_view_utils.h" |
| 13 #include "chrome/grit/chromium_strings.h" | 12 #include "chrome/grit/chromium_strings.h" |
| 14 #include "chrome/grit/generated_resources.h" | 13 #include "chrome/grit/generated_resources.h" |
| 14 #include "components/browser_sync/browser/profile_sync_service.h" |
| 15 #include "components/infobars/core/infobar.h" | 15 #include "components/infobars/core/infobar.h" |
| 16 #include "components/password_manager/core/browser/password_bubble_experiment.h" | 16 #include "components/password_manager/core/browser/password_bubble_experiment.h" |
| 17 #include "content/public/browser/web_contents.h" | 17 #include "content/public/browser/web_contents.h" |
| 18 #include "ui/base/l10n/l10n_util.h" | 18 #include "ui/base/l10n/l10n_util.h" |
| 19 | 19 |
| 20 // static | 20 // static |
| 21 void AutoSigninFirstRunInfoBarDelegate::Create( | 21 void AutoSigninFirstRunInfoBarDelegate::Create( |
| 22 content::WebContents* web_contents, | 22 content::WebContents* web_contents, |
| 23 const base::string16& message) { | 23 const base::string16& message) { |
| 24 Profile* profile = | 24 Profile* profile = |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 return l10n_util::GetStringUTF16(IDS_ONE_CLICK_SIGNIN_DIALOG_OK_BUTTON); | 56 return l10n_util::GetStringUTF16(IDS_ONE_CLICK_SIGNIN_DIALOG_OK_BUTTON); |
| 57 } | 57 } |
| 58 | 58 |
| 59 bool AutoSigninFirstRunInfoBarDelegate::Accept() { | 59 bool AutoSigninFirstRunInfoBarDelegate::Accept() { |
| 60 return true; | 60 return true; |
| 61 } | 61 } |
| 62 | 62 |
| 63 bool AutoSigninFirstRunInfoBarDelegate::Cancel() { | 63 bool AutoSigninFirstRunInfoBarDelegate::Cancel() { |
| 64 return true; | 64 return true; |
| 65 } | 65 } |
| OLD | NEW |