| Index: chrome/browser/signin/chrome_signin_client.cc
|
| diff --git a/chrome/browser/signin/chrome_signin_manager_delegate.cc b/chrome/browser/signin/chrome_signin_client.cc
|
| similarity index 52%
|
| rename from chrome/browser/signin/chrome_signin_manager_delegate.cc
|
| rename to chrome/browser/signin/chrome_signin_client.cc
|
| index 3354d9832859458a77f01ed43d4086d0067b669a..ae33bc331954a0b1c056021d17f86246ec41e62b 100644
|
| --- a/chrome/browser/signin/chrome_signin_manager_delegate.cc
|
| +++ b/chrome/browser/signin/chrome_signin_client.cc
|
| @@ -2,7 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "chrome/browser/signin/chrome_signin_manager_delegate.h"
|
| +#include "chrome/browser/signin/chrome_signin_client.h"
|
|
|
| #include "chrome/browser/content_settings/cookie_settings.h"
|
| #include "url/gurl.h"
|
| @@ -13,29 +13,25 @@ const char kGoogleAccountsUrl[] = "https://accounts.google.com";
|
|
|
| } // namespace
|
|
|
| -ChromeSigninManagerDelegate::ChromeSigninManagerDelegate(Profile* profile)
|
| - : profile_(profile) {
|
| -}
|
| +ChromeSigninClient::ChromeSigninClient(Profile* profile) : profile_(profile) {}
|
|
|
| -ChromeSigninManagerDelegate::~ChromeSigninManagerDelegate() {
|
| -}
|
| +ChromeSigninClient::~ChromeSigninClient() {}
|
|
|
| // static
|
| -bool ChromeSigninManagerDelegate::ProfileAllowsSigninCookies(Profile* profile) {
|
| +bool ChromeSigninClient::ProfileAllowsSigninCookies(Profile* profile) {
|
| CookieSettings* cookie_settings =
|
| CookieSettings::Factory::GetForProfile(profile).get();
|
| return SettingsAllowSigninCookies(cookie_settings);
|
| }
|
|
|
| // static
|
| -bool ChromeSigninManagerDelegate::SettingsAllowSigninCookies(
|
| +bool ChromeSigninClient::SettingsAllowSigninCookies(
|
| CookieSettings* cookie_settings) {
|
| return cookie_settings &&
|
| - cookie_settings->IsSettingCookieAllowed(GURL(kGoogleAccountsUrl),
|
| - GURL(kGoogleAccountsUrl));
|
| + cookie_settings->IsSettingCookieAllowed(GURL(kGoogleAccountsUrl),
|
| + GURL(kGoogleAccountsUrl));
|
| }
|
|
|
| -
|
| -bool ChromeSigninManagerDelegate::AreSigninCookiesAllowed() {
|
| +bool ChromeSigninClient::AreSigninCookiesAllowed() {
|
| return ProfileAllowsSigninCookies(profile_);
|
| }
|
|
|