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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 login_callback)); | 141 login_callback)); |
142 } | 142 } |
143 | 143 |
144 return identity_provider_.get(); | 144 return identity_provider_.get(); |
145 } | 145 } |
146 | 146 |
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() { |
| 152 return g_browser_process->ukm_service(); |
| 153 } |
| 154 |
151 void ChromeAutofillClient::ShowAutofillSettings() { | 155 void ChromeAutofillClient::ShowAutofillSettings() { |
152 #if defined(OS_ANDROID) | 156 #if defined(OS_ANDROID) |
153 chrome::android::ChromeApplication::ShowAutofillSettings(); | 157 chrome::android::ChromeApplication::ShowAutofillSettings(); |
154 #else | 158 #else |
155 Browser* browser = chrome::FindBrowserWithWebContents(web_contents()); | 159 Browser* browser = chrome::FindBrowserWithWebContents(web_contents()); |
156 if (browser) | 160 if (browser) |
157 chrome::ShowSettingsSubPage(browser, chrome::kAutofillSubPage); | 161 chrome::ShowSettingsSubPage(browser, chrome::kAutofillSubPage); |
158 #endif // #if defined(OS_ANDROID) | 162 #endif // #if defined(OS_ANDROID) |
159 } | 163 } |
160 | 164 |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 // directly. | 389 // directly. |
386 const GURL kSecurityIndicatorHelpCenterUrl( | 390 const GURL kSecurityIndicatorHelpCenterUrl( |
387 "https://support.google.com/chrome/?p=ui_security_indicator"); | 391 "https://support.google.com/chrome/?p=ui_security_indicator"); |
388 web_contents()->OpenURL(content::OpenURLParams( | 392 web_contents()->OpenURL(content::OpenURLParams( |
389 GURL(kSecurityIndicatorHelpCenterUrl), content::Referrer(), | 393 GURL(kSecurityIndicatorHelpCenterUrl), content::Referrer(), |
390 WindowOpenDisposition::NEW_FOREGROUND_TAB, ui::PAGE_TRANSITION_LINK, | 394 WindowOpenDisposition::NEW_FOREGROUND_TAB, ui::PAGE_TRANSITION_LINK, |
391 false /* is_renderer_initiated */)); | 395 false /* is_renderer_initiated */)); |
392 } | 396 } |
393 | 397 |
394 } // namespace autofill | 398 } // namespace autofill |
OLD | NEW |