| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 #endif | 142 #endif |
| 143 identity_provider_.reset(new ProfileIdentityProvider( | 143 identity_provider_.reset(new ProfileIdentityProvider( |
| 144 SigninManagerFactory::GetForProfile(profile), | 144 SigninManagerFactory::GetForProfile(profile), |
| 145 ProfileOAuth2TokenServiceFactory::GetForProfile(profile), | 145 ProfileOAuth2TokenServiceFactory::GetForProfile(profile), |
| 146 login_callback)); | 146 login_callback)); |
| 147 } | 147 } |
| 148 | 148 |
| 149 return identity_provider_.get(); | 149 return identity_provider_.get(); |
| 150 } | 150 } |
| 151 | 151 |
| 152 rappor::RapporService* ChromeAutofillClient::GetRapporService() { | 152 rappor::RapporServiceImpl* ChromeAutofillClient::GetRapporServiceImpl() { |
| 153 return g_browser_process->rappor_service(); | 153 return g_browser_process->rappor_service(); |
| 154 } | 154 } |
| 155 | 155 |
| 156 void ChromeAutofillClient::ShowAutofillSettings() { | 156 void ChromeAutofillClient::ShowAutofillSettings() { |
| 157 #if BUILDFLAG(ANDROID_JAVA_UI) | 157 #if BUILDFLAG(ANDROID_JAVA_UI) |
| 158 chrome::android::ChromeApplication::ShowAutofillSettings(); | 158 chrome::android::ChromeApplication::ShowAutofillSettings(); |
| 159 #else | 159 #else |
| 160 Browser* browser = chrome::FindBrowserWithWebContents(web_contents()); | 160 Browser* browser = chrome::FindBrowserWithWebContents(web_contents()); |
| 161 if (browser) | 161 if (browser) |
| 162 chrome::ShowSettingsSubPage(browser, chrome::kAutofillSubPage); | 162 chrome::ShowSettingsSubPage(browser, chrome::kAutofillSubPage); |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 chrome::FindBrowserWithWebContents(web_contents()) | 386 chrome::FindBrowserWithWebContents(web_contents()) |
| 387 ->window() | 387 ->window() |
| 388 ->ShowAvatarBubbleFromAvatarButton( | 388 ->ShowAvatarBubbleFromAvatarButton( |
| 389 BrowserWindow::AVATAR_BUBBLE_MODE_SIGNIN, | 389 BrowserWindow::AVATAR_BUBBLE_MODE_SIGNIN, |
| 390 signin::ManageAccountsParams(), | 390 signin::ManageAccountsParams(), |
| 391 signin_metrics::AccessPoint::ACCESS_POINT_AUTOFILL_DROPDOWN); | 391 signin_metrics::AccessPoint::ACCESS_POINT_AUTOFILL_DROPDOWN); |
| 392 #endif | 392 #endif |
| 393 } | 393 } |
| 394 | 394 |
| 395 } // namespace autofill | 395 } // namespace autofill |
| OLD | NEW |