OLD | NEW |
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/ui/autofill/chrome_autofill_client.h" | 5 #include "chrome/browser/ui/autofill/chrome_autofill_client.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 #include "components/signin/core/browser/signin_header_helper.h" | 42 #include "components/signin/core/browser/signin_header_helper.h" |
43 #include "components/signin/core/browser/signin_metrics.h" | 43 #include "components/signin/core/browser/signin_metrics.h" |
44 #include "components/user_prefs/user_prefs.h" | 44 #include "components/user_prefs/user_prefs.h" |
45 #include "content/public/browser/navigation_entry.h" | 45 #include "content/public/browser/navigation_entry.h" |
46 #include "content/public/browser/render_frame_host.h" | 46 #include "content/public/browser/render_frame_host.h" |
47 #include "content/public/browser/ssl_status.h" | 47 #include "content/public/browser/ssl_status.h" |
48 #include "ui/gfx/geometry/rect.h" | 48 #include "ui/gfx/geometry/rect.h" |
49 | 49 |
50 #if defined(OS_ANDROID) | 50 #if defined(OS_ANDROID) |
51 #include "base/android/context_utils.h" | 51 #include "base/android/context_utils.h" |
52 #include "chrome/browser/android/chrome_application.h" | 52 #include "chrome/browser/android/preferences/preferences_launcher.h" |
53 #include "chrome/browser/android/signin/signin_promo_util_android.h" | 53 #include "chrome/browser/android/signin/signin_promo_util_android.h" |
54 #include "chrome/browser/infobars/infobar_service.h" | 54 #include "chrome/browser/infobars/infobar_service.h" |
55 #include "chrome/browser/ui/android/autofill/autofill_logger_android.h" | 55 #include "chrome/browser/ui/android/autofill/autofill_logger_android.h" |
56 #include "chrome/browser/ui/android/infobars/autofill_credit_card_filling_infoba
r.h" | 56 #include "chrome/browser/ui/android/infobars/autofill_credit_card_filling_infoba
r.h" |
57 #include "components/autofill/core/browser/autofill_credit_card_filling_infobar_
delegate_mobile.h" | 57 #include "components/autofill/core/browser/autofill_credit_card_filling_infobar_
delegate_mobile.h" |
58 #include "components/autofill/core/browser/autofill_save_card_infobar_delegate_m
obile.h" | 58 #include "components/autofill/core/browser/autofill_save_card_infobar_delegate_m
obile.h" |
59 #include "components/autofill/core/browser/autofill_save_card_infobar_mobile.h" | 59 #include "components/autofill/core/browser/autofill_save_card_infobar_mobile.h" |
60 #include "components/infobars/core/infobar.h" | 60 #include "components/infobars/core/infobar.h" |
61 #include "content/public/browser/android/content_view_core.h" | 61 #include "content/public/browser/android/content_view_core.h" |
62 #else // !OS_ANDROID | 62 #else // !OS_ANDROID |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 rappor::RapporServiceImpl* ChromeAutofillClient::GetRapporServiceImpl() { | 147 rappor::RapporServiceImpl* ChromeAutofillClient::GetRapporServiceImpl() { |
148 return g_browser_process->rappor_service(); | 148 return g_browser_process->rappor_service(); |
149 } | 149 } |
150 | 150 |
151 ukm::UkmService* ChromeAutofillClient::GetUkmService() { | 151 ukm::UkmService* ChromeAutofillClient::GetUkmService() { |
152 return g_browser_process->ukm_service(); | 152 return g_browser_process->ukm_service(); |
153 } | 153 } |
154 | 154 |
155 void ChromeAutofillClient::ShowAutofillSettings() { | 155 void ChromeAutofillClient::ShowAutofillSettings() { |
156 #if defined(OS_ANDROID) | 156 #if defined(OS_ANDROID) |
157 chrome::android::ChromeApplication::ShowAutofillSettings(); | 157 chrome::android::PreferencesLauncher::ShowAutofillSettings(); |
158 #else | 158 #else |
159 Browser* browser = chrome::FindBrowserWithWebContents(web_contents()); | 159 Browser* browser = chrome::FindBrowserWithWebContents(web_contents()); |
160 if (browser) | 160 if (browser) |
161 chrome::ShowSettingsSubPage(browser, chrome::kAutofillSubPage); | 161 chrome::ShowSettingsSubPage(browser, chrome::kAutofillSubPage); |
162 #endif // #if defined(OS_ANDROID) | 162 #endif // #if defined(OS_ANDROID) |
163 } | 163 } |
164 | 164 |
165 void ChromeAutofillClient::ShowUnmaskPrompt( | 165 void ChromeAutofillClient::ShowUnmaskPrompt( |
166 const CreditCard& card, | 166 const CreditCard& card, |
167 UnmaskCardReason reason, | 167 UnmaskCardReason reason, |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 // directly. | 389 // directly. |
390 const GURL kSecurityIndicatorHelpCenterUrl( | 390 const GURL kSecurityIndicatorHelpCenterUrl( |
391 "https://support.google.com/chrome/?p=ui_security_indicator"); | 391 "https://support.google.com/chrome/?p=ui_security_indicator"); |
392 web_contents()->OpenURL(content::OpenURLParams( | 392 web_contents()->OpenURL(content::OpenURLParams( |
393 GURL(kSecurityIndicatorHelpCenterUrl), content::Referrer(), | 393 GURL(kSecurityIndicatorHelpCenterUrl), content::Referrer(), |
394 WindowOpenDisposition::NEW_FOREGROUND_TAB, ui::PAGE_TRANSITION_LINK, | 394 WindowOpenDisposition::NEW_FOREGROUND_TAB, ui::PAGE_TRANSITION_LINK, |
395 false /* is_renderer_initiated */)); | 395 false /* is_renderer_initiated */)); |
396 } | 396 } |
397 | 397 |
398 } // namespace autofill | 398 } // namespace autofill |
OLD | NEW |