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

Side by Side Diff: chrome/browser/password_manager/generated_password_saved_infobar_delegate_android.cc

Issue 1419103009: [Sync] Componentize ProfileSyncService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@max_bogue_sync_backend_host
Patch Set: Rebase Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/generated_password_saved_infobar_deleg ate_android.h" 5 #include "chrome/browser/password_manager/generated_password_saved_infobar_deleg ate_android.h"
6 6
7 #include <cstddef> 7 #include <cstddef>
8 8
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/browser/android/chrome_application.h" 10 #include "chrome/browser/android/chrome_application.h"
11 #include "chrome/browser/infobars/infobar_service.h" 11 #include "chrome/browser/infobars/infobar_service.h"
12 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/sync/profile_sync_service.h"
14 #include "chrome/browser/sync/profile_sync_service_factory.h" 13 #include "chrome/browser/sync/profile_sync_service_factory.h"
15 #include "chrome/common/url_constants.h" 14 #include "chrome/common/url_constants.h"
16 #include "chrome/grit/generated_resources.h" 15 #include "chrome/grit/generated_resources.h"
17 #include "chrome/grit/theme_resources.h" 16 #include "chrome/grit/theme_resources.h"
17 #include "components/browser_sync/browser/profile_sync_service.h"
18 #include "components/password_manager/core/browser/password_bubble_experiment.h" 18 #include "components/password_manager/core/browser/password_bubble_experiment.h"
19 #include "content/public/browser/web_contents.h" 19 #include "content/public/browser/web_contents.h"
20 #include "ui/base/l10n/l10n_util.h" 20 #include "ui/base/l10n/l10n_util.h"
21 21
22 GeneratedPasswordSavedInfoBarDelegateAndroid:: 22 GeneratedPasswordSavedInfoBarDelegateAndroid::
23 ~GeneratedPasswordSavedInfoBarDelegateAndroid() {} 23 ~GeneratedPasswordSavedInfoBarDelegateAndroid() {}
24 24
25 void GeneratedPasswordSavedInfoBarDelegateAndroid::OnInlineLinkClicked() { 25 void GeneratedPasswordSavedInfoBarDelegateAndroid::OnInlineLinkClicked() {
26 if (smart_lock_branding_enabled_) { 26 if (smart_lock_branding_enabled_) {
27 InfoBarService::WebContentsFromInfoBar(infobar())->OpenURL( 27 InfoBarService::WebContentsFromInfoBar(infobar())->OpenURL(
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 } 61 }
62 62
63 infobars::InfoBarDelegate::Type 63 infobars::InfoBarDelegate::Type
64 GeneratedPasswordSavedInfoBarDelegateAndroid::GetInfoBarType() const { 64 GeneratedPasswordSavedInfoBarDelegateAndroid::GetInfoBarType() const {
65 return PAGE_ACTION_TYPE; 65 return PAGE_ACTION_TYPE;
66 } 66 }
67 67
68 int GeneratedPasswordSavedInfoBarDelegateAndroid::GetIconId() const { 68 int GeneratedPasswordSavedInfoBarDelegateAndroid::GetIconId() const {
69 return IDR_INFOBAR_SAVE_PASSWORD; 69 return IDR_INFOBAR_SAVE_PASSWORD;
70 } 70 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698