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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 #endif | 149 #endif |
150 identity_provider_.reset(new ProfileIdentityProvider( | 150 identity_provider_.reset(new ProfileIdentityProvider( |
151 SigninManagerFactory::GetForProfile(profile), | 151 SigninManagerFactory::GetForProfile(profile), |
152 ProfileOAuth2TokenServiceFactory::GetForProfile(profile), | 152 ProfileOAuth2TokenServiceFactory::GetForProfile(profile), |
153 login_callback)); | 153 login_callback)); |
154 } | 154 } |
155 | 155 |
156 return identity_provider_.get(); | 156 return identity_provider_.get(); |
157 } | 157 } |
158 | 158 |
159 rappor::RapporService* ChromeAutofillClient::GetRapporService() { | 159 rappor::RapporServiceImpl* ChromeAutofillClient::GetRapporServiceImpl() { |
160 return g_browser_process->rappor_service(); | 160 return g_browser_process->rappor_service(); |
161 } | 161 } |
162 | 162 |
163 void ChromeAutofillClient::ShowAutofillSettings() { | 163 void ChromeAutofillClient::ShowAutofillSettings() { |
164 #if BUILDFLAG(ANDROID_JAVA_UI) | 164 #if BUILDFLAG(ANDROID_JAVA_UI) |
165 chrome::android::ChromeApplication::ShowAutofillSettings(); | 165 chrome::android::ChromeApplication::ShowAutofillSettings(); |
166 #else | 166 #else |
167 Browser* browser = chrome::FindBrowserWithWebContents(web_contents()); | 167 Browser* browser = chrome::FindBrowserWithWebContents(web_contents()); |
168 if (browser) | 168 if (browser) |
169 chrome::ShowSettingsSubPage(browser, chrome::kAutofillSubPage); | 169 chrome::ShowSettingsSubPage(browser, chrome::kAutofillSubPage); |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 } | 400 } |
401 | 401 |
402 void ChromeAutofillClient::ShowHttpNotSecureExplanation() { | 402 void ChromeAutofillClient::ShowHttpNotSecureExplanation() { |
403 web_contents()->OpenURL(content::OpenURLParams( | 403 web_contents()->OpenURL(content::OpenURLParams( |
404 GURL(kSecurityIndicatorHelpCenterUrl), content::Referrer(), | 404 GURL(kSecurityIndicatorHelpCenterUrl), content::Referrer(), |
405 WindowOpenDisposition::NEW_FOREGROUND_TAB, ui::PAGE_TRANSITION_LINK, | 405 WindowOpenDisposition::NEW_FOREGROUND_TAB, ui::PAGE_TRANSITION_LINK, |
406 false /* is_renderer_initiated */)); | 406 false /* is_renderer_initiated */)); |
407 } | 407 } |
408 | 408 |
409 } // namespace autofill | 409 } // namespace autofill |
OLD | NEW |